docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PropertyAttribute

    Attribute used to annotate task properties.

    Inheritance
    object
    Attribute
    PropertyAttribute
    Namespace: Unity.Kinematica
    Assembly: solution.dll
    Syntax
    [AttributeUsage(AttributeTargets.Field)]
    public class PropertyAttribute : Attribute
    Remarks

    Tasks can optionally have properties than be read from or written to by user code. In order to display these properties as editable fields in the corresponding task graph visualization the property attribute can be used.

    public struct TimerTask : Task
    {
        [Property]
        float timeInSeconds;
    }

    Constructors

    Name Description
    PropertyAttribute(string)

    Constructs a property attribute with the name passed as argument.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)