Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#ifdef UNITY_EDITOR on serialized property #11

Open
phigamedevelopment opened this issue Apr 29, 2019 · 1 comment
Open

#ifdef UNITY_EDITOR on serialized property #11

phigamedevelopment opened this issue Apr 29, 2019 · 1 comment

Comments

@phigamedevelopment
Copy link

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?

@Scoppio
Copy link

Scoppio commented May 16, 2020

This problems does not seen to be new, I found errors with this message dating back to 2013, no single forum post shows any way to properly "fix" that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants