CloneContext.

GetOrCreateCloneOrOriginal<T>(T) Method

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`.
Assembly
Animancer.dll
Namespace
Animancer
Containing Type
CloneContext

Syntax

public T GetOrCreateCloneOrOriginal<T>(T original)

Remarks

If T is Animancer.ICloneable`1, use Animancer.CloneContext.GetOrCreateClone``1(Animancer.ICloneable{``0}) instead.

Type Parameters

Name Description
T

Parameters

Name Type Description
original T

Return Value

Type Description
T