RequireComponentAttributeclass

When added to a property on a Component, we'll try to make that component value non null. We will first look on the GameObject for the component type. If it's not found, we'll create one.

object→Attribute→RequireComponentAttribute
Namespace
Sandbox
Assembly
Sandbox.System
Declaration
public class Sandbox.RequireComponentAttribute : System.Attribute

Constructors1

Showing 1 constructors

On this page