Class PlatformLayerData
This class is used to keep platform dependent properties. The specific platforms define additional attributes for this inherited class.
Inherited Members
Namespace: Unity.XR.CompositionLayers.Layers
Assembly: Unity.XR.CompositionLayers.dll
Syntax
[Serializable]
public class PlatformLayerData
Methods
Deserialize(string)
Deserialize all SerializeField from text.
Declaration
public virtual void Deserialize(string text)
Parameters
Type | Name | Description |
---|---|---|
string | text | Serialized text. |
DeserializeBinary(int[])
Deserialize all properties from binary.
Declaration
public virtual void DeserializeBinary(int[] binary)
Parameters
Type | Name | Description |
---|---|---|
int[] | binary | Serialized binary. |
IsSupportedSerializeBinary()
Check to support binary serialize/deserialize.
Declaration
public virtual bool IsSupportedSerializeBinary()
Returns
Type | Description |
---|---|
bool | true if target platform supports binary serialize/deserialize. |
Serialize()
Serialize all SerializeField to text.
Declaration
public virtual string Serialize()
Returns
Type | Description |
---|---|
string | Serialized text. |
SerializeBinary()
Serialize all properties to binary.
Declaration
public virtual int[] SerializeBinary()
Returns
Type | Description |
---|---|
int[] | Serialized binary. |