The CreateBodyRenderer
method is a public instance method of the PlayerController
class in the Sandbox namespace. This method is responsible for creating a body renderer for the player character. It is decorated with several attributes that provide additional metadata and functionality:
ButtonAttribute
: Allows the method to be invoked via a button in the editor.PropertyAttribute
: Marks the method as a property for editor purposes.FeatureAttribute
: Indicates that this method is related to the "Animator" feature.TintAttribute
: Applies a tint to the method in the editor, with a value of "2".ShowIfAttribute
: Specifies that the method should be shown in the editor if theShowCreateBodyRenderer
property is true.SourceLocationAttribute
: Provides the source file and line number where the method is defined, useful for debugging and navigation.