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
-
- IEnumerable
<KeyValuePair <Object, List <SharedReferenceCache .Field >> >
- IEnumerable
- 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 |
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 |
SharedReferenceCache |
Returns a cached
Animancer.Editor.SharedReferenceCache for the `serializedObject`.static
|
GetEnumerator |
Dictionary |
Returns an enumerator for all references and their info.
|
TryGetInfo |
bool |
Tries to get the info about all fields containing the `reference`.
|