I wanted to make the editor a bit easier to use by redefining the object filter, for example make a new filter called "vegetation" so I can easily find all trees, bushes, flowers, etc. To do that I need to add an extra tag to the corresponding object called "vegetation". Is it possible to add a property to existing object without having to redefine the whole object?
Say instead of adding
Code: Select all
defineObject{
name = "forest_grass_01",
baseObject = "base_floor_decoration",
components = {
{
class = "Model",
model = "assets/models/env/forest_grass_01.fbx",
castShadow = false,
dissolveStart = 2,
dissolveEnd = 4,
},
{
class = "Animation",
animations = {
sway = "assets/animations/env/forest_grass_01_idle.fbx",
},
playOnInit = "sway",
loop = true,
maxUpdateDistance = 5,
},
},
editorIcon = 240,
reflectionMode = "never",
minimalSaveState = true,
tags = { "vegetation" },
}
Code: Select all
forest_grass_01.tags = {"vegetation"}