Explanation of what I’m doing: I currently have a Player object with many scripts associated with it, then I have a graphics object as a child of that (the other child of that is the camera), and then I have a playerModel that will have multiple prefab children with animator controller and animatorw script. The scrip triggers animations. I have a script that toggles the weapons wielded and displays them on the right side of the camera. That is what the player will see. But I want everyone else to see the player animations and the player holding the weapon. The reason I made multiple prefabs was because I wanted to player prefab to be unique to that specific weapon and be able to grab it. I know where to add the code to hide the player prefab and show the rest of them ( already know it works this way because I have selected hide in the inspector and ran it and it works just fine, I just want the CODE to trigger the hiding, not have to manually do it by me)
TL;DR how to hide my game object
Player (1) > Graphics > playerModel > Model T pose 2
I want to hide Model T pose 2 in a script that is not necessarily attached to that specific object. I also want to show another variation of Model T Pose 2 once the other one is hidden. Please tell me how to access it to hide it from any script.