cancel
Showing results for 
Search instead for 
Did you mean: 

Unity OVRCameraController BackgroundColor Not Serialized

AlmostLogical
Honored Guest
In OVRCameraController.cs I noticed BackgroundColor was not saving (always reverting to default). In the newest release 0.2.4 you change a few properties to be getter and setters but did not set the private variable to seralized.
Here is the fix:

[SerializeField]
private Color backgroundColor = new Color(0.192f, 0.302f, 0.475f, 1.0f);

---
Simply add [SerializeField] in front of the private item, this way it will save.
In OVRCameraController the list of properties that will have the same issue are as follows:
ipd,verticalFOV, backgroundColor, nearClipPlane, farClipPlane

I didn't check all other class, so might be worth checking to make sure this isn't an issue else where.


-Devin
3 REPLIES 3

cybereality
Grand Champion
Thanks for the feedback.
AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV

petergiokaris
Protege
Awesome, thank you for finding this! I will have this in for the next release.
Peter Giokaris Senior Software Engineer

drash
Heroic Explorer
Wanted to bring this other thread to your attention, just in case. [SerializeField] by itself doesn't seem to help when running from a built executable.
  • Titans of Space PLUS for Quest is now available on DrashVR.com
Get Help
Did this answer your question? If it didn’t, use our search to find other topics or create your own and other members of the community will help out.

Check out some popular posts here:
Getting Help from the Meta Quest Community
Tips and Tricks: Charging your Meta Quest Headset
Tips and Tricks: Help with Pairing your Meta Quest
Trouble With Facebook/Instagram Accounts?