Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Jepplen's avatar
Jepplen
Expert Protege
4 years ago

Unable to get custom public variable in OVR script and view in editor.

Hi,

 

I know how to get a public variable to show in the editor. (no biggie right)

And there is of course no problem to do this to customize OVR scripts.

 

But... in some OVR scripts this is not possible, but no problem in many of them.

I can customize the script and send variables and data from other scripts.

But I can't find a way to set a public or serialized variable to show up in the editor.

 

What the fudge am I missing?
It's driving me nuts!

 

I have tried:

 

public bool isAlive;

[SerializeField]
private bool _isAlive;

 



I have even tried placing them between the scripts original public variables.
Nothing in the editor...

 

1 Reply

Replies have been turned off for this discussion
  • Jepplen's avatar
    Jepplen
    Expert Protege

    Ok, so I found that the monobehaviour script was connected to an Editor script that needed a reference to the public variable.
    First time for everything.


    Hope it helps someone!