Class OccurrenceSync
Inheritance
OccurrenceSync
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Assembly: Unity.Pixyz.UnitySDK.Runtime.dll
Syntax
[ExecuteAlways]
[DisallowMultipleComponent]
public class OccurrenceSync : MonoBehaviour
Properties
AABB
Bounding of this object and all it's children, sync after each update if moved or when RefreshAABB is manually called
Declaration
public Bounds AABB { get; }
Property Value
CachedParent
Parent of the unity object cached until the next update if changed
Declaration
public Transform CachedParent { get; }
Property Value
IsReady
Is this occurrence loaded and ready to be used/accessed ?
Declaration
public bool IsReady { get; }
Property Value
IsRoot
Is this occurrence the root of the file loaded ?
Declaration
public bool IsRoot { get; }
Property Value
IsTemporary
Is this OccurrenceSync considered as a permanent occurrence on the unity side ?
Declaration
public bool IsTemporary { get; }
Property Value
OccurrenceId
Declaration
public uint OccurrenceId { get; }
Property Value
Wrapper
Declaration
public OccurrenceWrapper Wrapper { get; }
Property Value
Methods
AddRef(OccurrenceRef)
Declaration
public void AddRef(OccurrenceRef reference)
Parameters
Init(PiXYZAPI, OccurrenceWrapper, bool)
Declaration
public void Init(PiXYZAPI api, OccurrenceWrapper wrapper, bool newlyCreated)
Parameters
OnSelect()
Declaration
OnUnselect()
Declaration
RefreshAABB()
Declaration
public void RefreshAABB()
RemoveRef()
Declaration
SetRootReference(OccurrenceRef)
Declaration
public void SetRootReference(OccurrenceRef reference)
Parameters
SetTemporary(bool)
Declaration
public void SetTemporary(bool temporary)
Parameters
Type |
Name |
Description |
bool |
temporary |
|
SetWrapper(OccurrenceWrapper, bool)
Declaration
public void SetWrapper(OccurrenceWrapper wrapper, bool isLoaded)
Parameters
Sync()
Declaration
public virtual void Sync()
Declaration
public void SyncTransform(bool force = false)
Parameters
Type |
Name |
Description |
bool |
force |
|
TakeReference()
Create a new reference to this OccurrenceSync
Declaration
public OccurrenceRef TakeReference()
Returns