Class RequireComponentAttribute
Allows to declare that a component requires another component in order to run (used for ScriptComponent
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public class RequireComponentAttribute : EntityComponentAttributeBase
- Inheritance
-
RequireComponentAttribute
- Inherited Members
Constructors
RequireComponentAttribute(Type)
Initializes a new instance of RequireComponentAttribute.
public RequireComponentAttribute(Type type)
Parameters
type
TypeType of the required EntityComponent
Properties
Type
Gets the type of the required component (Must be an EntityComponent.
public Type Type { get; }