class RequireComponentAttribute : System.Attribute

book_4_sparkGenerated
code_blocksInput

Description

The RequireComponentAttribute is an attribute used in the Sandbox game development framework. It ensures that a specified component is present on a GameObject. If the component is not found, it will be automatically added. This attribute is typically applied to properties within a Component to enforce the presence of necessary components, thereby preventing null references and ensuring the component's functionality.

Members

Static Members

Member NameSummary
No static members available.

Instance Members

Member NameSummary
No instance members available.

DerivedTypesHtml

This class does not have any derived types.