Skip to content

#ifdef UNITY_EDITOR on serialized property #11

@phigamedevelopment

Description

@phigamedevelopment

Hi,
I really like the idea of using scriptable objects as variables. Adding a description is really usefull, specially in bigger projects.

#if UNITY_EDITOR
[Multiline]
public string DeveloperDescription = "";
#endif

Unfortunatly, it seems that this is not possible anymore to keep the description as an editor definition in Unity 2019.1. It generates a crash at runtime with the following message :

Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions