docs.unity3d.com
    Show / Hide Table of Contents

    Class TraitDefinition

    Trait's name and value type

    Inheritance
    Object
    TraitDefinition
    Namespace: Unity.MARS.Data
    Syntax
    public class TraitDefinition : IEquatable<TraitDefinition>, IEquatable<TraitRequirement>

    Constructors

    TraitDefinition(String, Type)

    Creates a new TraitDefinition

    Declaration
    public TraitDefinition(string traitName, Type type)
    Parameters
    Type Name Description
    String traitName

    The name of the trait

    Type type

    The type of the trait's value

    Fields

    TraitName

    The name of the trait

    Declaration
    public readonly string TraitName
    Field Value
    Type Description
    String

    Type

    The type of the trait's value

    Declaration
    public readonly Type Type
    Field Value
    Type Description
    Type

    Methods

    Equals(TraitDefinition)

    Declaration
    public bool Equals(TraitDefinition other)
    Parameters
    Type Name Description
    TraitDefinition other
    Returns
    Type Description
    Boolean

    Equals(TraitRequirement)

    Declaration
    public bool Equals(TraitRequirement obj)
    Parameters
    Type Name Description
    TraitRequirement obj
    Returns
    Type Description
    Boolean

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    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