Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Bishop | |
Old Version | Published before Godot 3 was released. |
Hello,
I have mesh-object planned as Kinematic Body
and I want to change the emission color in time
…emission colors ( color1 and color2 ) loops in time
i have a script but does not work
Thanks for help,guys
extends MeshInstance
var color_time
export (Color) var color1
export (Color) var color2
var mesh
var material = FixedMaterial.PARAM_EMISSION == Color(color1)
const PARAM_EMISSION = 3
#const PARAM_GLOW = 5
func _ready():
set_process(true)
mesh = get_node(".")
mesh.set_material_override(material)
color_time = get_node("/root/entity_test/entity_02_anim/color_time")
func _process(delta):
if color_time:
pass