Hi, I have a script that creates several Capsule and Sphere objects, and I'd like a way to make them invisible, but still active in the scene.
What I've tried already is to GetComponent<Renderer> on the atoms, and their gameobjects and set the renderer.enable to false, which only works on the spheres weirdly. I can't make heads or tails of the materials or what to access from where, or anything like that
Basically, the same as setting their material Alpha Adjust to -1, or enabling "Hide Material" from the shader tab in material options, but from within a script.
How do I do that? I'm not very familiar with unity, and the VaM codebase is quite large, and I don't know where to begin to look for this ... Nor could I find any existing plugin that looked adjacent to what I want to peep into. The ones that alter textures do so on full characters which don't seem relevant to simple objects ...
What I've tried already is to GetComponent<Renderer> on the atoms, and their gameobjects and set the renderer.enable to false, which only works on the spheres weirdly. I can't make heads or tails of the materials or what to access from where, or anything like that
Basically, the same as setting their material Alpha Adjust to -1, or enabling "Hide Material" from the shader tab in material options, but from within a script.
How do I do that? I'm not very familiar with unity, and the VaM codebase is quite large, and I don't know where to begin to look for this ... Nor could I find any existing plugin that looked adjacent to what I want to peep into. The ones that alter textures do so on full characters which don't seem relevant to simple objects ...