The MaterialGroup
property of the ModelRenderer
class specifies the material group to be used for rendering the model. This property is a string that identifies a specific group of materials that can be applied to the model, allowing for different visual appearances based on the selected group.
This property is decorated with several attributes:
PropertyAttribute
: Marks this property as a configurable property within the editor.MaterialGroupAttribute
: Indicates that this property is related to material groups.MakeDirtyAttribute
: Ensures that changes to this property mark the object as needing to be re-rendered.ShowIfAttribute
: Conditionally shows this property in the editor if theHasMaterialGroups
condition is met.DefaultValueAttribute
: Specifies a default value for this property.