The CreateAttachments
property of the ModelRenderer
class determines whether attachment points should be automatically created for the model being rendered. This property is useful when you want to dynamically generate attachment points for models, which can be used for attaching other objects or effects.
To use the CreateAttachments
property, simply set it to true
or false
depending on whether you want to enable or disable the automatic creation of attachments for the model.
For example, if you want to ensure that attachments are created for a model, set the property to true
:
ModelRenderer renderer = new ModelRenderer();
renderer.CreateAttachments = true;
If you do not need attachments, you can set it to false
to potentially improve performance:
renderer.CreateAttachments = false;