how to you have an image effect on a button down? I’m new with unity and i don’t know where to start.I’m trying to make a color correction happen when you press z.
you can access all components in unity through scripting Anything u see in your InspectorWindow(the window that holds ur transform), some of these components include MeshRenderers and there corrosponding materials, as u may or may not be aware a material holds data for the objects texture and color u could simply change the color of a material or you could change the material itself, i don’t know exactly what u mean by “Color Correction” but i’d hazard a guess that a Material is what you need heres an example
public MeshRenderer mesh; // drag/drop the object we want to affects color to this field in the inspector.
public Material newmat; //drag/drop the material we change to here.
public Color custColor; // if we just want to change the color.
// place the following in update
if(Input.GetKeyDown(Keycode.Tab)) {
mesh.material = newmat;
// or if we just want to change the current materials color
mesh.material.color = custColor;
}