Summary
[Assert-Only]
A simple system for caching
UnityEngine.Object.name
since it allocates garbage every time it's accessed.
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["NameCache"]
class Type type-node
Syntax
public static class NameCache
Methods
Name | Value | Summary |
---|---|---|
Clear |
void |
Clears all cached names so they will be re-gathered when next accessed.
static
|
GetCachedName |
string |
Caches and returns the
UnityEngine.Object.name .static
|
SetName |
void |
Sets the
UnityEngine.Object.name and caches it.static
|
TryToString |
bool |
Tries to get the
UnityEngine.Object.name or System.Object.ToString .static
|