Version 3.1.1.0

DynamicObjectAddress class

Namespace: Sirenix.OdinValidator.Editor
Assembly: Sirenix.OdinValidator.Editor
public class DynamicObjectAddress : ISerializationCallbackReceiver, IEquatable<DynamicObjectAddress>
Inheritance
  • System.Object
  • DynamicObjectAddress
Implements
  • UnityEngine.ISerializationCallbackReceiver

Fields

Unknown
public static readonly DynamicObjectAddress Unknown

Properties

IsBroken
public bool IsBroken { get; }
IsUnloaded
public bool IsUnloaded { get; }
LatestAddress
public ObjectAddress LatestAddress { get; }
LatestInstanceID
public int LatestInstanceID { get; }

Methods

CreateBroken(ObjectAddress)
public static DynamicObjectAddress CreateBroken(ObjectAddress address)
Parameters
ObjectAddress address

Equals(DynamicObjectAddress)
public bool Equals(DynamicObjectAddress other)
Parameters
DynamicObjectAddress other

Returns
System.Boolean

Equals(Object)
public override bool Equals(object obj)
Parameters
System.Object obj

Returns
System.Boolean

Finalize()
protected void Finalize()
GetHashCode()
public override int GetHashCode()
Returns
System.Int32

GetOrCreate(Int32, ObjectAddress)
public static DynamicObjectAddress GetOrCreate(int instanceID, ObjectAddress address)
Parameters
System.Int32 instanceID

ObjectAddress address

GetOrCreate(Object, ObjectAddress)
public static DynamicObjectAddress GetOrCreate(Object obj, ObjectAddress address)
Parameters
UnityEngine.Object obj

ObjectAddress address

OnAfterDeserialize()
public void OnAfterDeserialize()
OnBeforeSerialize()
public void OnBeforeSerialize()
Refresh()
public void Refresh()
TryGet(ObjectAddress, out DynamicObjectAddress)
public static bool TryGet(ObjectAddress objectAddress, out DynamicObjectAddress address)
Parameters
ObjectAddress objectAddress

DynamicObjectAddress address

Returns
System.Boolean

TryGet(Int32, out DynamicObjectAddress)
public static bool TryGet(int instanceID, out DynamicObjectAddress address)
Parameters
System.Int32 instanceID

DynamicObjectAddress address

Returns
System.Boolean

TryGetObjectReference(Boolean, Boolean, out Object, out String)
public bool TryGetObjectReference(bool openSceneIfNeeded, bool autoSaveIfOpenScene, out Object result, out string errorMessage)
Parameters
System.Boolean openSceneIfNeeded

System.Boolean autoSaveIfOpenScene

UnityEngine.Object result

System.String errorMessage

Returns
System.Boolean

TryGetObjectReference(Boolean, Boolean, out Object, out String, out Object)
public bool TryGetObjectReference(bool openSceneIfNeeded, bool autoSaveIfOpenScene, out Object result, out string errorMessage, out Object closestObject)
Parameters
System.Boolean openSceneIfNeeded

System.Boolean autoSaveIfOpenScene

UnityEngine.Object result

System.String errorMessage

UnityEngine.Object closestObject

Returns
System.Boolean

Operators

Equality(DynamicObjectAddress, DynamicObjectAddress)
public static bool operator ==(DynamicObjectAddress a, DynamicObjectAddress b)
Returns
System.Boolean

Inequality(DynamicObjectAddress, DynamicObjectAddress)
public static bool operator !=(DynamicObjectAddress a, DynamicObjectAddress b)
Returns
System.Boolean