Namespace: | Sirenix.Serialization |
Assembly: | Sirenix.Serialization |
public sealed class UnityReferenceResolver : IExternalIndexReferenceResolver, ICacheNotificationReceiver
public UnityReferenceResolver()
public UnityReferenceResolver(List<Object> referencedUnityObjects)
System.Collections.Generic.List<UnityEngine.Object> | referencedUnityObjects | The referenced Unity objects. |
public bool CanReference(object value, out int index)
System.Object | value | The value to reference. |
System.Int32 | index | The index of the resolved value, if it can be referenced. |
System.Boolean |
|
public List<Object> GetReferencedUnityObjects()
System.Collections.Generic.List<UnityEngine.Object> | A list of the currently referenced Unity objects. |
public void Reset()
public void SetReferencedUnityObjects(List<Object> referencedUnityObjects)
System.Collections.Generic.List<UnityEngine.Object> | referencedUnityObjects | The referenced Unity objects to set, or null if a new list is required. |
public bool TryResolveReference(int index, out object value)
System.Int32 | index | The index to resolve. |
System.Object | value | The resolved value. |
System.Boolean |
|