Table of Contents

Class RequireComponentAttribute

Namespace
Stride.Engine
Assembly
Stride.Engine.dll

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 Type

Type of the required EntityComponent

Properties

Type

Gets the type of the required component (Must be an EntityComponent.

public Type Type { get; }

Property Value

Type