Class SyncMaterial
This class specifies information about a material that can be used in a SyncObject and that can be converted into a Unity Material.
Inherited Members
Namespace: Unity.Reflect.Model
Syntax
public class SyncMaterial : ISyncModel, ISyncSendable
Constructors
SyncMaterial()
Creates an empty SyncMaterial.
Declaration
public SyncMaterial()
SyncMaterial(SyncId, String)
Creates a SyncMaterial.
Declaration
public SyncMaterial(SyncId id, string name)
Parameters
Type | Name | Description |
---|---|---|
SyncId | id | The unique ID of the material |
String | name | The name of the material |
SyncMaterial(SyncId, String, SyncColor, SyncMap, SyncColor, Single, Single, SyncMap, SyncMap, Single, SyncMap, Single, Single, SyncMap, Single, SyncMap, SyncColor, Single, SyncMap)
Creates a SyncMaterial.
Declaration
public SyncMaterial(SyncId id, string name, SyncColor tint, SyncMap albedoMap, SyncColor albedoColor, float albedoFade, float alpha, SyncMap alphaMap, SyncMap normalMap, float normalScale, SyncMap cutoutMap, float cutoutThreshold, float glossiness, SyncMap glossinessMap, float metallic, SyncMap metallicMap, SyncColor emission, float emissionTemperature, SyncMap emissionMap)
Parameters
Type | Name | Description |
---|---|---|
SyncId | id | The unique ID of the material |
String | name | The name of the material |
SyncColor | tint | The tint of the material |
SyncMap | albedoMap | The albedo map of the material |
SyncColor | albedoColor | The albedo color of the material |
Single | albedoFade | The albedo fade value of the material |
Single | alpha | The alpha value of the material |
SyncMap | alphaMap | The alpha map of the material |
SyncMap | normalMap | The normal map of the material |
Single | normalScale | The normal scale of the material |
SyncMap | cutoutMap | The cutout map of the material |
Single | cutoutThreshold | The cutout threshold of the material |
Single | glossiness | The glossiness of the material |
SyncMap | glossinessMap | The glossiness map of the material |
Single | metallic | The metallicness of the material |
SyncMap | metallicMap | The metallic map of the material |
SyncColor | emission | The emission color of the material |
Single | emissionTemperature | The emission temperature of the material |
SyncMap | emissionMap | The emission map of the material |
Fields
Extension
The file extension for this type
Declaration
public static string Extension
Field Value
Type | Description |
---|---|
String |
Properties
AlbedoColor
The albedo color of the material.
Declaration
public SyncColor AlbedoColor { get; set; }
Property Value
Type | Description |
---|---|
SyncColor |
AlbedoFade
The amount of albedo fading of the material, from 0 to 1. The highest the value, the more the albedo map takes importance over the albedo color.
Declaration
public float AlbedoFade { get; set; }
Property Value
Type | Description |
---|---|
Single |
AlbedoMap
The albedo map of the material.
Declaration
public SyncMap AlbedoMap { get; set; }
Property Value
Type | Description |
---|---|
SyncMap |
Alpha
The alpha value of the material, from 0 to 1.
Declaration
public float Alpha { get; set; }
Property Value
Type | Description |
---|---|
Single |
AlphaMap
The alpha map of the material.
Declaration
public SyncMap AlphaMap { get; set; }
Property Value
Type | Description |
---|---|
SyncMap |
CutoutMap
The cutout map of the material.
Declaration
public SyncMap CutoutMap { get; set; }
Property Value
Type | Description |
---|---|
SyncMap |
CutoutThreshold
The cutout threshold of the material, from 0 to 1.
Declaration
public float CutoutThreshold { get; set; }
Property Value
Type | Description |
---|---|
Single |
Emission
The emission color of the material.
Declaration
public SyncColor Emission { get; set; }
Property Value
Type | Description |
---|---|
SyncColor |
EmissionMap
The emission map of the material.
Declaration
public SyncMap EmissionMap { get; set; }
Property Value
Type | Description |
---|---|
SyncMap |
EmissionTemperature
The emission temperature of the material, from 0 to 1.
Declaration
public float EmissionTemperature { get; set; }
Property Value
Type | Description |
---|---|
Single |
Glossiness
The glossiness of the material, from 0 to 1.
Declaration
public float Glossiness { get; set; }
Property Value
Type | Description |
---|---|
Single |
GlossinessMap
The glossiness map of the material.
Declaration
public SyncMap GlossinessMap { get; set; }
Property Value
Type | Description |
---|---|
SyncMap |
Id
The unique identifier of the material. Note that it needs to be unique only amongst the other SyncMaterials.
Declaration
public SyncId Id { get; }
Property Value
Type | Description |
---|---|
SyncId |
Implements
Metallic
The metallicness of the material, from 0 to 1.
Declaration
public float Metallic { get; set; }
Property Value
Type | Description |
---|---|
Single |
MetallicMap
The metallic map of the material.
Declaration
public SyncMap MetallicMap { get; set; }
Property Value
Type | Description |
---|---|
SyncMap |
Name
The name of the material.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
Implements
NormalMap
The normal map of the material.
Declaration
public SyncMap NormalMap { get; set; }
Property Value
Type | Description |
---|---|
SyncMap |
NormalScale
The amount of normal scale of the material.
Declaration
public float NormalScale { get; set; }
Property Value
Type | Description |
---|---|
Single |
Tint
The tint of the material.
Declaration
public SyncColor Tint { get; set; }
Property Value
Type | Description |
---|---|
SyncColor |