Class RequireComponentAttribute
- Namespace
- Cobilas.GodotEngine.Component
- Assembly
- com.cobilas.godot.icomponent.dll
Signals to the AddRequireComponent(Node?) method which components to add to the Godot.Node object.
[AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = false)]
public sealed class RequireComponentAttribute : Attribute, _Attribute
- Inheritance
-
RequireComponentAttribute
- Implements
- Inherited Members
Constructors
RequireComponentAttribute(Type)
Creates a new instance of this object.
public RequireComponentAttribute(Type component)
Parameters
component
Type
RequireComponentAttribute(Type, Type)
Creates a new instance of this object.
public RequireComponentAttribute(Type component1, Type component2)
Parameters
RequireComponentAttribute(Type, Type, Type)
Creates a new instance of this object.
public RequireComponentAttribute(Type component1, Type component2, Type component3)
Parameters
RequireComponentAttribute(params Type[])
Signals to the AddRequireComponent(Node?) method which components to add to the Godot.Node object.
public RequireComponentAttribute(params Type[] components)
Parameters
components
Type[]
Properties
Components
The types of components to be added.
public Type[] Components { get; }
Property Value
- Type[]
Returns the types of components to be added.