av3-animator-as-code icon indicating copy to clipboard operation
av3-animator-as-code copied to clipboard

Let the user instantiate custom assets inside a container

Open hai-vr opened this issue 3 years ago • 0 comments

Let the user instantiate custom assets inside a container.

This can let the user generate assets of their own that will be cleaned on every generation.

Example:

MeshRenderer mr;

Material modifiedAsset = aac.CopyAsset(mr.materials[0]);
modifiedAsset.SetColor("_Color", Color.green);

aac.NewClip().SwappingMaterial(mr, 0, modifiedAsset);

hai-vr avatar Mar 20 '22 01:03 hai-vr