SharedReferenceCache Class

Summary

[Editor-Only] A system which gathers information about UnityEngine.SerializeReference fields to detect when multiple fields are referencing the same object.
Assembly
Animancer.dll
Namespace
Animancer.Editor
Interfaces
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IEnumerable<KeyValuePair<Object, List<SharedReferenceCache.Field>>>"] Type["SharedReferenceCache"] class Type type-node

Syntax

public class SharedReferenceCache : 
    IEnumerable<KeyValuePair<Object, List<SharedReferenceCache.Field>>>

Constructors

Name Summary
SharedReferenceCache(SerializedObject) Creates a new Animancer.Editor.SharedReferenceCache.

Properties

Name Value Summary
FrameCount ulong
The number of editor updates that have occurred since startup.
static
ShouldGather bool
Should Animancer.Editor.SharedReferenceCache.GatherReferences be called?

Methods

Name Value Summary
GatherReferences() void
Updates the cached reference info.
Get(SerializedObject) SharedReferenceCache
Returns a cached Animancer.Editor.SharedReferenceCache for the `serializedObject`.
static
GetEnumerator() Dictionary<Object, List<SharedReferenceCache.Field>>.Enumerator
Returns an enumerator for all references and their info.
TryGetInfo(Object, List<SharedReferenceCache.Field>) bool
Tries to get the info about all fields containing the `reference`.