Hello Chris,it's possible to change "Main Cursor Setting" mode via script in game options ?
I tryed with this script in Update() function, but don't works...
if (cursore == 0)
AC.CursorManager.cursorDisplay = CursorDisplay.OnlyWhenPaused;
if (cursore == 1)
AC.CursorManager.cursorDisplay = CursorDisplay.Always;
where "cursore" it's my change variable. Script it's attached to PersistentEngine prefab of the game
Unity gives me this error:
Assets/MyOptions.cs(66,29): error CS0120: An object reference is required to access non-static member `AC.CursorManager.cursorDisplay'
Hope you can help me to understand where i wrong...
Thanks
Comments
To reference the Cursor Manager, you use:
AC.KickStarter.cursorManager
You can also right-click the label of any field in the Managers to get an API reference to change it through script.