I want to make objects invisible but interactive with input!

Hey, I recently found a way to move my player (Which is just a cube in the mean time!) through clickable nodes. I set nodes in a separate layer so I can hide it from renderer, but then all the functionality is gone!

I want to make the custom nodes invincible, but interactive, I also don’t want to reduce performance by disabling the mesh renderer of the objects using script, cause the game will be on mobile devices.

Can you just remove the mesh renderer all together? Sounds like all you need is the collider for the click event.

//if you dont want to do this:
transform.renderer.enabled = false;

		//you can do this instead:
		transform.renderer.material.shader=Shader.Find("Transparent/Diffuse");
		transform.renderer.material.color = Color.clear;

Thank you all, but I found the solution. I just added a script to disable all mesh renderers in the scene under the tagged objects (Which in this case are “Nodes”) in Awake(), and added a loading screen to hide that operation.