Class OccurrenceSync
Inherited Members
Component.GetComponentIndex()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, InstantiateParameters)
Object.InstantiateAsync<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate(Object, Scene)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEditor.Pixyz.UnitySDK
Assembly: Unity.Pixyz.UnitySDK.Editor.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
Type | Description |
---|---|
Bounds |
CachedParent
Parent of the unity object cached until the next update if changed
Declaration
public Transform CachedParent { get; }
Property Value
Type | Description |
---|---|
Transform |
IsReady
Is this occurrence loaded and ready to be used/accessed ?
Declaration
public bool IsReady { get; }
Property Value
Type | Description |
---|---|
bool |
IsRoot
Is this occurrence the root of the file loaded ?
Declaration
public bool IsRoot { get; }
Property Value
Type | Description |
---|---|
bool |
IsTemporary
Is this OccurrenceSync considered as a permanent occurrence on the unity side ?
Declaration
public bool IsTemporary { get; }
Property Value
Type | Description |
---|---|
bool |
OccurrenceId
Declaration
public uint OccurrenceId { get; }
Property Value
Type | Description |
---|---|
uint |
Wrapper
Declaration
public OccurrenceWrapper Wrapper { get; }
Property Value
Type | Description |
---|---|
OccurrenceWrapper |
Methods
AddRef(OccurrenceRef)
Declaration
public void AddRef(OccurrenceRef reference)
Parameters
Type | Name | Description |
---|---|---|
OccurrenceRef | reference |
Init(PiXYZAPI, OccurrenceWrapper, bool)
Declaration
public void Init(PiXYZAPI api, OccurrenceWrapper wrapper, bool newlyCreated)
Parameters
Type | Name | Description |
---|---|---|
PiXYZAPI | api | |
OccurrenceWrapper | wrapper | |
bool | newlyCreated |
OnSelect()
Declaration
public void OnSelect()
OnUnselect()
Declaration
public void OnUnselect()
RefreshAABB()
Declaration
public void RefreshAABB()
RemoveRef()
Declaration
public void RemoveRef()
SetRootReference(OccurrenceRef)
Declaration
public void SetRootReference(OccurrenceRef reference)
Parameters
Type | Name | Description |
---|---|---|
OccurrenceRef | reference |
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
Type | Name | Description |
---|---|---|
OccurrenceWrapper | wrapper | |
bool | isLoaded |
Sync()
Declaration
public virtual void Sync()
SyncTransform(bool)
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
Type | Description |
---|---|
OccurrenceRef |