Class SyncObject
This class specifies information about an object that can be converted into a Prefab in Unity.
Inherited Members
Namespace: Unity.Reflect.Model
Syntax
public class SyncObject : ISyncModel, ISyncSendable
Constructors
SyncObject()
Creates an empty SyncObject.
Declaration
public SyncObject()
SyncObject(SyncId, String)
Creates a basic SyncObject.
Declaration
public SyncObject(SyncId id, string name)
Parameters
Type | Name | Description |
---|---|---|
SyncId | id | The unique ID of this object |
String | name | The name of this object |
Fields
Extension
The file extension for this type
Declaration
public static string Extension
Field Value
Type | Description |
---|---|
String |
Properties
Camera
The object's camera, if any.
Declaration
public SyncCamera Camera { get; set; }
Property Value
Type | Description |
---|---|
SyncCamera |
Children
The object's children.
Declaration
public List<SyncObject> Children { get; set; }
Property Value
Type | Description |
---|---|
List<SyncObject> |
Id
The unique identifier of the object. Note that it needs to be unique only amongst the other SyncObjects.
Declaration
public SyncId Id { get; }
Property Value
Type | Description |
---|---|
SyncId |
Implements
Light
The object's light, if any.
Declaration
public SyncLight Light { get; set; }
Property Value
Type | Description |
---|---|
SyncLight |
MaterialIds
The material IDs associated with the object's mesh. They follow the same order as the submeshes in the included mesh.
Declaration
public List<SyncId> MaterialIds { get; set; }
Property Value
Type | Description |
---|---|
List<SyncId> |
MeshId
The unique ID of the included mesh, if any.
Declaration
public SyncId MeshId { get; set; }
Property Value
Type | Description |
---|---|
SyncId |
Metadata
The object's metadata, if any.
Declaration
public SyncMetadata Metadata { get; set; }
Property Value
Type | Description |
---|---|
SyncMetadata |
Name
The object's name.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
Implements
Rpc
The object's RPC, if any.
Declaration
public SyncRPC Rpc { get; set; }
Property Value
Type | Description |
---|---|
SyncRPC |
Transform
The object's transform.
Declaration
public SyncTransform Transform { get; set; }
Property Value
Type | Description |
---|---|
SyncTransform |
Methods
IsEmpty()
Checks whether the object is empty.
Declaration
public bool IsEmpty()
Returns
Type | Description |
---|---|
Boolean | Whether the object is empty |