Class Capabilities
Represents features of the hardware and software SDKs, used in a request for what the app needs vs. what is available
Implements
Inherited Members
Namespace: Unity.MARS.Data
Assembly: Unity.MARS.dll
Syntax
[Serializable]
public class Capabilities : ISerializationCallbackReceiver
Fields
cloudSupport
If the experience requires cloud data
Declaration
public bool cloudSupport
Field Value
Type | Description |
---|---|
bool |
Properties
RequiredCameraFacing
The required camera facing direction
Declaration
public CameraFacingDirection RequiredCameraFacing { get; set; }
Property Value
Type | Description |
---|---|
CameraFacingDirection |
TraitRequirements
A set of exact traits that must be supported
Declaration
public HashSet<TraitRequirement> TraitRequirements { get; }
Property Value
Type | Description |
---|---|
HashSet<TraitRequirement> |
Methods
AddCapabilities(Capabilities)
Adds features from another Capabilities to this set of features
Declaration
public void AddCapabilities(Capabilities other)
Parameters
Type | Name | Description |
---|---|---|
Capabilities | other | Capabilities to add |
OnAfterDeserialize()
Implement this callback to transform data back into runtime data types after an object is deserialized.
Declaration
public void OnAfterDeserialize()
OnBeforeSerialize()
Implement this callback to transform data into serializable data types immediately before an object is serialized.
Declaration
public void OnBeforeSerialize()