CloneContext.

TryGetOrCreateCloneOrOriginal<T>(T, T) Method

Summary

Returns true if there is a `clone` registered for the `original`. 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 true. Otherwise, outputs the `original` as the `clone` and returns false.
Assembly
Animancer.dll
Namespace
Animancer
Containing Type
CloneContext

Syntax

public bool TryGetOrCreateCloneOrOriginal<T>(T original, out T clone)

Remarks

Outputs null and returns true if the `original` is null.

Type Parameters

Name Description
T

Parameters

Name Type Description
original T
clone T

Return Value

Type Description
bool