Class SyncTexture
This class specifies information about a texture that can be included in a SyncMap and which can be converted into a Unity Texture.
Inherited Members
Namespace: Unity.Reflect.Model
Syntax
public class SyncTexture : ISyncModel, ISyncSendable
Constructors
SyncTexture()
Creates an empty SyncTexture.
Declaration
public SyncTexture()
SyncTexture(SyncId, String)
Creates a basic SyncTexture.
Declaration
public SyncTexture(SyncId id, string name)
Parameters
Type | Name | Description |
---|---|---|
SyncId | id | The unique ID of the SyncTexture |
String | name | The name of the SyncTexture |
Fields
Extension
The file extension for this type
Declaration
public static string Extension
Field Value
Type | Description |
---|---|
String |
Properties
ConvertToNormalMap
Whether the texture has to be converted to normal map in Unity.
Declaration
public bool ConvertToNormalMap { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Id
The unique identifier of the texture. Note that it needs to be unique only amongst the other SyncTextures.
Declaration
public SyncId Id { get; }
Property Value
Type | Description |
---|---|
SyncId |
Implements
Name
The name of the texture.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
Implements
Source
The content of the texture, as a raw array of bytes. You just need to read all the bytes from the chosen image file.
Declaration
public byte[] Source { get; set; }
Property Value
Type | Description |
---|---|
Byte[] |