Api Sandbox RequireComponentAttribute
class

RequireComponentAttribute

public class RequireComponentAttribute : Attribute

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.

Constructors

RequireComponentAttribute()
Assembly: Sandbox.System Namespace: Sandbox Full Name: Sandbox.RequireComponentAttribute