Class OccurrenceRef
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)
Namespace: UnityEngine.Pixyz.UnitySDK
Assembly: Unity.Pixyz.UnitySDK.Runtime.dll
Syntax
[Serializable]
public class OccurrenceRef : ScriptableObject
Fields
Occurrence
Declaration
[HideInInspector]
public OccurrenceSync Occurrence
Field Value
| Type | Description |
|---|---|
| OccurrenceSync |
Properties
IsValid
Is this reference still valid ?
Declaration
public bool IsValid { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
CreateInstance(OccurrenceRef)
Create a new ref base on the ref provided
Declaration
public static OccurrenceRef CreateInstance(OccurrenceRef source)
Parameters
| Type | Name | Description |
|---|---|---|
| OccurrenceRef | source |
Returns
| Type | Description |
|---|---|
| OccurrenceRef |
CreateInstance(OccurrenceSync)
Create a new reference base on the provided occurrence
Declaration
public static OccurrenceRef CreateInstance(OccurrenceSync occurrence)
Parameters
| Type | Name | Description |
|---|---|---|
| OccurrenceSync | occurrence |
Returns
| Type | Description |
|---|---|
| OccurrenceRef |
GetHandle()
Return a handle on the linked occurrence or create one
Declaration
public OccurrenceSync.Handle GetHandle()
Returns
| Type | Description |
|---|---|
| OccurrenceSync.Handle |
Invalidate()
Declaration
public void Invalidate()
OnDestroy()
Declaration
public void OnDestroy()