Files
WickedEngine/Content/scripts/set_material_all.lua
T
2022-06-11 10:23:13 +02:00

9 lines
339 B
Lua

-- You can use this script to iterate through all materials in the scene and set the same parameters for each one
backlog_post("---> START SCRIPT: set_material_all.lua")
for i,material in ipairs(GetScene().Component_GetMaterialArray()) do
material.SetBaseColor(Vector(1,1,1,1))
end
backlog_post("---> END SCRIPT: set_material_all.lua")