Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

RequireComponent.RequireComponent

RequireComponent(requiredComponent: Type)
RequireComponent(Type requiredComponent);
def RequireComponent(requiredComponent as Type)

Description

Require a single component.

RequireComponent(requiredComponent: Type, requiredComponent2: Type)
RequireComponent(Type requiredComponent, Type requiredComponent2);
def RequireComponent(requiredComponent as Type, requiredComponent2 as Type)

Description

Require a two components.

RequireComponent(requiredComponent: Type, requiredComponent2: Type, requiredComponent3: Type)
RequireComponent(Type requiredComponent, Type requiredComponent2, Type requiredComponent3);
def RequireComponent(requiredComponent as Type, requiredComponent2 as Type, requiredComponent3 as Type)

Description

Require three components.