Hi again.
If I have a script with go.property("my_atlas", resource.atlas("/atlas.atlas"))
defined, how do I set this when the instance is created from a factory?
local props = { health = 50, target = msg.url("player") }
local id = factory.create("#can_factory", nil, nil, props)
-- Accessing to factory created script properties
local url = msg.url(nil, id, "can")
local can_health = go.get(url, "health")
resource.atlas(...)
can only be used inside of go.property() as stated by the API documentation.
If I have a hundred atlases (I will likely end up with more and currently generate them in my external editor…) and want to dynamically select which one to use, how do I accomplish this?