Summary
Returns the value registered using `original` as its key if there is one.
Otherwise, if the `original` is Animancer.ICloneable`1
it calls Animancer.CloneableExtensions.Clone``1(Animancer.ICloneable{``0})
,
adds the clone to this dictionary, and returns it.
Otherwise, just returns the `original`.
Syntax
public T GetOrCreateCloneOrOriginal<T>(T original)
If T is Animancer.ICloneable`1
,
use Animancer.CloneContext.GetOrCreateClone``1(Animancer.ICloneable{``0})
instead.
Type Parameters
Parameters
Name |
Type |
Description |
original |
T |
|
Return Value