Namespace: | Sirenix.OdinValidator.Editor |
Assembly: | Sirenix.OdinValidator.Editor |
public class ObjectAddress : IEquatable<ObjectAddress>
public ObjectAddress(SceneReference validatedScene)
SceneReference | validatedScene |
public ObjectAddress(ObjectAddress.AddressType type, string assetGUID, string assetPath, ObjectAddress.SubAssetAddress subAsset, ObjectAddress.HierarchyAddress hierarchyAddress, ObjectAddress.ComponentAddress component, string niceObjectName, Type objectType, bool isBroken)
ObjectAddress.AddressType | type | |
System.String | assetGUID | |
System.String | assetPath | |
ObjectAddress.SubAssetAddress | subAsset | |
ObjectAddress.HierarchyAddress | hierarchyAddress | |
ObjectAddress.ComponentAddress | component | |
System.String | niceObjectName | |
System.Type | objectType | |
System.Boolean | isBroken |
public string AssetPath
public ObjectAddress.ComponentAddress Component
public ObjectAddress.HierarchyAddress Hierarchy
public bool IsBroken
public string Name
public UnitySerializableType ObjectType
public ObjectAddress.SubAssetAddress SubAsset
public ObjectAddress.AddressType Type
public static readonly ObjectAddress Unknown
public string AssetGUID { get; set; }
public override bool Equals(object obj)
System.Object | obj |
System.Boolean |
public override int GetHashCode()
System.Int32 |
public static ObjectAddress.HierarchyAddress GetHierarchyAddress(GameObject go)
UnityEngine.GameObject | go |
ObjectAddress.HierarchyAddress |
public override string ToString()
System.String |
public string ToString(bool prettyPrint = false)
System.Boolean | prettyPrint |
System.String |
public static bool TryCreateObjectAddress(Object obj, out ObjectAddress finalResult, out string errorMessage)
UnityEngine.Object | obj | |
ObjectAddress | finalResult | |
System.String | errorMessage |
System.Boolean |
public bool TryGetObjectReference(bool openSceneIfNeeded, bool autoSaveIfOpenScene, out Object result, out string errorMessage)
System.Boolean | openSceneIfNeeded | |
System.Boolean | autoSaveIfOpenScene | |
UnityEngine.Object | result | |
System.String | errorMessage |
System.Boolean |
public bool TryGetObjectReference(bool openSceneIfNeeded, bool autoSaveIfOpenScene, out Object result, out string errorMessage, out Object closestObject)
System.Boolean | openSceneIfNeeded | |
System.Boolean | autoSaveIfOpenScene | |
UnityEngine.Object | result | |
System.String | errorMessage | |
UnityEngine.Object | closestObject |
System.Boolean |
public static bool operator ==(ObjectAddress a, ObjectAddress b)
ObjectAddress | a | |
ObjectAddress | b |
System.Boolean |
public static bool operator !=(ObjectAddress a, ObjectAddress b)
ObjectAddress | a | |
ObjectAddress | b |
System.Boolean |