Change GameObject's ambient/brightness

Hey it’s me again :slight_smile:

I simply want to change a GameObject’s ambient/brightness, when I hover it (void OnMouseOver() {}).
Is there a simple way?
In 3d GameStudio you can use the method entity.ambient …

Greets, kack93

You need a specific shader with an ambient value, meaning an additive value at the end of the fragment shader. You can take the shader currently used by the objects in question, and edit it a bit. Then in your code : material.SetColor( name, value );