Description
The ShouldShowParametersEditor
property of the SkinnedModelRenderer
class indicates whether the parameters editor should be displayed for the skinned model renderer component. This property is useful for determining if the editor interface for animgraph parameters should be visible, allowing for customization and configuration of animation parameters directly within the editor.
Usage
To use the ShouldShowParametersEditor
property, you can access it directly from an instance of the SkinnedModelRenderer
class. This property is a boolean, so it can be used in conditional statements to control the visibility of the parameters editor.
Example
// Example of accessing the ShouldShowParametersEditor property
SkinnedModelRenderer renderer = new SkinnedModelRenderer();
// Check if the parameters editor should be shown
if (renderer.ShouldShowParametersEditor)
{
// Logic to display the parameters editor
// This could involve UI code to render the editor interface
}