bool CreateBoneObjects { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The CreateBoneObjects property of the SkinnedModelRenderer class determines whether bone objects should be created for each bone in the skinned model. This is useful for scenarios where you need to manipulate or interact with individual bones programmatically.

Usage

To use the CreateBoneObjects property, simply set it to true if you want to create bone objects for each bone in the skinned model. Set it to false if you do not need to create bone objects.

Example

// Example of setting the CreateBoneObjects property
SkinnedModelRenderer renderer = new SkinnedModelRenderer();
renderer.CreateBoneObjects = true; // Enable creation of bone objects

// Later in the code, you can access bone objects if needed
GameObject boneObject = renderer.GetBoneObject(0); // Get the GameObject for the first bone