Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    EntityComponentAttributes Struct

    Namespace: Stride.Engine
    Assembly: Stride.Engine.dll

    Allow to query attributes used on an EntityComponent

    public struct EntityComponentAttributes
    Name Description
    Fields
    AllowMultipleComponents

    Gets a boolean indicating whether the EntityComponent is supporting multiple components of the same type on an entity.

    Methods
    Get(Type)

    Gets the attributes for the specified type.

    Get<T>()

    Gets the attributes for the specified type.

    | Improve this Doc View Source

    Fields


    AllowMultipleComponents

    Gets a boolean indicating whether the EntityComponent is supporting multiple components of the same type on an entity.

    public readonly bool AllowMultipleComponents
    Field Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Methods


    Get(Type)

    Gets the attributes for the specified type.

    public static EntityComponentAttributes Get(Type type)
    Parameters
    Type Name Description
    System.Type type

    The type of the component.

    Returns
    Type Description
    EntityComponentAttributes

    The attributes for the specified type.

    Exceptions
    Type Condition
    System.ArgumentNullException
    System.ArgumentException

    The type must be of EntityComponent;type


    Get<T>()

    Gets the attributes for the specified type.

    public static EntityComponentAttributes Get<T>()
        where T : EntityComponent
    Returns
    Type Description
    EntityComponentAttributes

    The attributes for the specified type.

    Type Parameters
    Name Description
    T

    Type of the component


    Inherited Members

    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.ValueType.ToString()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation