SuperBehaviour SuperBehaviour
SuperBehaviour SuperBehaviour
v0.1.2 [Beta]

Search Results for

    Class SerializePropertyAttribute

    Namespace
    LoM.Super
    Assembly
    LoM.Super.dll

    Use this attribute to enable properties to be shown like fields in the inspector.
    WARNING: This does NOT serialize or save the property in any way.

    Due to to the limition mentioned above the attributes are only editable in the play mode.
    Any changes made to the properties in edit mode will not be saved.


    If you assign this attribute to a property with a private or protected setter, it will be shown in the inspector as a readonly field.
    [SerializeProperty]
    public int PlayerHealth => m_PlayerHealth;
    If you assign this attribute to a property with a public setter, it will be shown in the inspector as a normal field.
    NOTE: It will still not be editable in edit mode.
    [SerializeProperty]
    public int PlayerHealth { get; set; }

    [AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
    public class SerializePropertyAttribute : Attribute
    Inheritance
    object
    Attribute
    SerializePropertyAttribute

    Constructors

    SerializePropertyAttribute()

    public SerializePropertyAttribute()
    © Lords of Mahlstrom Gaming, all rights reserved.