Class SyncObjectInstance
This class specifies information about a SyncObject instance.
Inherited Members
Namespace: Unity.Reflect.Model
Syntax
public class SyncObjectInstance : ISyncModel, ISyncSendable
Constructors
SyncObjectInstance()
Creates an empty SyncObjectInstance.
Declaration
public SyncObjectInstance()
SyncObjectInstance(SyncId, String, SyncId)
Creates a basic SyncObjectInstance.
Declaration
public SyncObjectInstance(SyncId id, string name, SyncId objectId)
Parameters
Type | Name | Description |
---|---|---|
SyncId | id | The unique ID of the SyncObjectInstance |
String | name | The name of the SyncObjectInstance |
SyncId | objectId | The target object ID |
Properties
Id
The unique identifier of the object instance. Note that it needs to be unique only amongst the other SyncObjectInstances.
Declaration
public SyncId Id { get; }
Property Value
Type | Description |
---|---|
SyncId |
Implements
Metadata
The metadata of the object instance. All the already existing keys in the target SyncObject's Metadata are overriden.
Declaration
public SyncMetadata Metadata { get; set; }
Property Value
Type | Description |
---|---|
SyncMetadata |
Name
The instance's name.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
Implements
ObjectId
The unique ID of the instance's target SyncObject.
Declaration
public SyncId ObjectId { get; set; }
Property Value
Type | Description |
---|---|
SyncId |
Transform
The transform of the object instance. It overrides the target SyncObject's Transform.
Declaration
public SyncTransform Transform { get; set; }
Property Value
Type | Description |
---|---|
SyncTransform |