Is there a way for a public/serializedfield to be uneditable and just grayed out in the inspector?
Is there a way for a public/serializedfield to be uneditable and just grayed out in the inspector.
Something like this:
capture.png
(8.1 kB)
Comment
I converted your answer to a comment. Please use comments when your not providing a solution.
Answer by MD_Reptile · Apr 22, 2016 at 06:38 AM
Like this:
[HideInInspector]
public int SomeInteger = 5;
[HideInInspector]
public GameObject SomeGameObject;
It might not be grayed out, but it can't be edited from the inspector. Hope that helps!
Your answer
Follow this Question
Related Questions
Custom inspector KeyCode Selector 0 Answers
Expose protected variable in inspector 1 Answer