Class OccurrenceSync.Handle
A handle is used to represent an Occurrence from Pixyz, it may or may not be instantiated in unity
Inheritance
OccurrenceSync.Handle
Assembly: Unity.Pixyz.UnitySDK.Runtime.dll
Syntax
public class OccurrenceSync.Handle
Constructors
Handle(uint)
Declaration
public Handle(uint occurrenceId)
Parameters
Type |
Name |
Description |
uint |
occurrenceId |
|
Handle(OccurrenceWrapper)
Declaration
public Handle(OccurrenceWrapper wrapper)
Parameters
Fields
Name
Declaration
Field Value
OccurrenceID
Declaration
Field Value
Properties
IsInstantiated
Is the target occurrence instantiated in unity ?
Declaration
public bool IsInstantiated { get; }
Property Value
Reference
Return a new reference to the instantiated occurrence if it was instantiated, null otherwise
Declaration
public OccurrenceRef Reference { get; }
Property Value
Methods
Equals(object)
Used so 2 instance of handle representing the same occurrence can be equal with == operator
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
Instantiate(TreeModel, bool)
Instantiate the occurrence in unity or return a new ref to the already instantiated occurrence
Declaration
public OccurrenceRef Instantiate(TreeModel model, bool temporary = true)
Parameters
Returns