Hi, in a single map, I created a menu, where there are more cameras, and each one I posted a script c # with a void OnGui and with writing and buttons, the problem is that even if I assign the various scripts to various cameras , the menus all appear together on the gui of the first camera … how to solve the problem?
1 Answer
1Your menu scripts will all render their gui onto the current camera at the same time. To fix this, you must disable the menus that you dont want rendering by using menu.enabled = false
gives as an error: Assets/Script/Menu/menu.cs(13,26): error CS0120: An object reference is required to access non-static member `UnityEngine.Behaviour.enabled'
– skullred