Skip to main content
Inspiring
April 13, 2021

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...

 

    This topic has been closed for replies.

    1 reply

    JepplenAuthor
    Inspiring
    April 13, 2021

    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!