#Type Mismatch

1 messages · Page 1 of 1 (latest)

placid cave
#

share the code idk

dawn root
#

[]nocode

loud etherBOT
#

It's hard to answer a programming question without code

Resolving a bug is almost impossible when the question doesn't include any of the buggy code. In order to help fix the problem, answerers are going to have to see what the code is.
Source: https://idownvotedbecau.se/nocode

Please isolate the problematic code and send it as a codeblock. If you don't know how to send a codeblock, type []cb

small pendant
#

there is a cube prefab and there is a script in this prefab what I want is that I created a menu from the UI and when the script in the prefab runs, I want the menu in the UI to be displayed on the screen, but the script that controls the menu and the scripts that run the system are in different places, one in the gameobject in the scene and the other in a prefab, so the public void that references the menu is in the gameobject, so I thought that in the script in the prefab, the public void in the gameobject
public BuildingController buildingController; I tried to combine it with the code and buildingController.infoPanel.gameObject.SetActive(false);
but since the script in the prefab asked me for the buildingController script, I tried to put that script there, but it gave a type mismatch error, what can I do?

#

@placid cave