Class SyncMap
This class specifies information about a texture and the associated operations that should be applied on it in Unity.
It can be included in a SyncMaterial.
Syntax
Constructors
SyncMap()
Creates an empty SyncMap.
Declaration
SyncMap(SyncId, float2, float2, Single, Boolean, Single)
Declaration
public SyncMap(SyncId texture, float2 offset, float2 tiling, float brightness = 1F, bool invert = false, float rotation = 0F)
Parameters
Properties
Brightness
The brightness to apply to the texture.
Declaration
public float Brightness { get; set; }
Property Value
Invert
Whether the texture needs to be inverted or not.
Declaration
public bool Invert { get; set; }
Property Value
Offset
An offset to apply to the texture.
Declaration
public float2 Offset { get; set; }
Property Value
RotationDegrees
A rotation to apply to the texture, in degrees.
Declaration
public float RotationDegrees { get; set; }
Property Value
TextureId
The associated texture ID.
Declaration
public SyncId TextureId { get; set; }
Property Value
Tiling
A tiling to apply to the texture.
Declaration
public float2 Tiling { get; set; }
Property Value
Methods
Empty()
Declaration
public static SyncMap Empty()
Returns
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides