Description
The ShouldShowMorphsEditor
property of the SkinnedModelRenderer
class is a boolean value that determines whether the morphs editor should be displayed in the user interface. This property is useful for developers who need to control the visibility of the morphs editor based on specific conditions or configurations within their application.
Usage
To use the ShouldShowMorphsEditor
property, you can simply get or set its value as needed. This property is typically used in scenarios where you want to provide users with the ability to edit morphs of a skinned model, but only under certain conditions.
Example
// Example of using ShouldShowMorphsEditor
SkinnedModelRenderer renderer = new SkinnedModelRenderer();
// Check if the morphs editor should be shown
if (renderer.ShouldShowMorphsEditor)
{
// Logic to display the morphs editor
}
// Set the property to true to show the morphs editor
renderer.ShouldShowMorphsEditor = true;