Class TraitPropertyDefinition | Semantic Traits | 0.2.8-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class TraitPropertyDefinition

    Base definition class used to declare a property type that can be used in a trait

    Inheritance
    Object
    TraitPropertyDefinition
    BooleanProperty
    EnumReferenceProperty
    FloatProperty
    IntProperty
    ListBooleanProperty
    ListFloatProperty
    ListIntProperty
    ObjectReferenceProperty
    StringProperty
    TransformProperty
    Vector2Property
    Vector3Property
    Namespace: Unity.Semantic.Traits
    Syntax
    [Serializable]
    public abstract class TraitPropertyDefinition : INamedProperty

    Properties

    Id

    Property unique Id

    Declaration
    public int Id { get; set; }
    Property Value
    Type Description
    Int32

    Name

    Property Name

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    String

    Type

    Type of data stored by the definition

    Declaration
    public abstract Type Type { get; }
    Property Value
    Type Description
    Type
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023