Class RequireComponent
Inheritance
RequireComponent
Assembly: UnityEngine.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public sealed class RequireComponent : Attribute, _Attribute
Constructors
|
Improve this Doc
View Source
RequireComponent(Type)
Declaration
public RequireComponent(Type requiredComponent)
Parameters
Type |
Name |
Description |
Type |
requiredComponent |
|
|
Improve this Doc
View Source
RequireComponent(Type, Type)
Declaration
public RequireComponent(Type requiredComponent, Type requiredComponent2)
Parameters
Type |
Name |
Description |
Type |
requiredComponent |
|
Type |
requiredComponent2 |
|
|
Improve this Doc
View Source
RequireComponent(Type, Type, Type)
Declaration
public RequireComponent(Type requiredComponent, Type requiredComponent2, Type requiredComponent3)
Parameters
Type |
Name |
Description |
Type |
requiredComponent |
|
Type |
requiredComponent2 |
|
Type |
requiredComponent3 |
|
Fields
|
Improve this Doc
View Source
m_Type0
Declaration
Field Value
|
Improve this Doc
View Source
m_Type1
Declaration
Field Value
|
Improve this Doc
View Source
m_Type2
Declaration
Field Value
Implements
Extension Methods