
This demo copies and displays a model instance of the skeletal model. This demo also shows how to share materials and skeletons and copy skeletal models.
To copy an object, pass the resource to a builder just as when creating an object. This demo gets the resource of a skeletal model using GetResSkeletalModel, and then creates a new skeletal model by passing the resource as an argument to Create of SkeletalModel::Builder.
Here, a skeletal model that shares the skeleton can be created by passing an instance of the skeleton to SharedSkeleton. For details, see Sharing Skeletons and High-Speed Features.
Also, you can create a model that shares the material of this model by passing an instance of the model to SharedMaterialModel.
In this demo, nodes are added and/or deleted at times other than initialization. When the tree structure is changed using AttachChild or some other function, the scene tree must be initialized and traversed again. In the demo library, traverse is executed by calling TraverseScene. For details, see Update Sequence and Execute traverse only when the scene tree structure has changed.
CONFIDENTIAL