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

FloatReferenceDrawer no longer works #13

Closed
christopherperry opened this issue May 23, 2020 · 4 comments
Closed

FloatReferenceDrawer no longer works #13

christopherperry opened this issue May 23, 2020 · 4 comments

Comments

@christopherperry
Copy link

I'm not sure when this broke but it currently does not work in Unity 2019.3.14.

property.FindPropertyRelative();

always returns null. I have FloatReference defined in my project and I also created an instance saved in my project.

Here's the problematic line:

SerializedProperty useConstant = property.FindPropertyRelative("UseConstant");

@christopherperry
Copy link
Author

Hey @roboryantron, bumping this issue so you're aware. Is this broken in your work projects as well or did you fix it there?

@roboryantron
Copy link
Owner

roboryantron commented Jun 7, 2020 via email

@christopherperry
Copy link
Author

Hmmm... I tried your example project and it works there. I copied the code for the FloatReference and the property drawer for that including your namespace and that works. I had copied without the namespace prior to this and it didn't want to work that way.

@christopherperry
Copy link
Author

Closing, there doesn't appear to be a problem.

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