Class ObjectReference
The ObjectReference class gives you a way to reference an object that may have been moved or destroyed since its initial creation.
public sealed class ObjectReference
- Inheritance
-
ObjectReference
- Inherited Members
Properties
Object
public UnityEngine.Object Object { get; }
Property Value
Path
public string Path { get; }
Property Value
Type
public Type Type { get; }
Property Value
Methods
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
TryResolve(ErrorReport, out Object)
public bool TryResolve(ErrorReport report, out UnityEngine.Object obj)
Parameters
report
ErrorReportobj
Object