If I spawn a object in a pos and a button in the same pos, the two are in different position (and the text is rotated 180degrees on y axis)
To replicate the issue I have placed a cube and attached a script to that object
Schermata 2021-01-24 alle 20.29.37.jpg
Code:
function onload(saved_data)
--createDisplayAndFunctionButtons()
pos_target = {5,5,5}
local params = {
label="OK",
click_function="ClickFunction",
function_owner=self, position=pos_target, height=400, width=400,
font_size=2000, font_color={40,55,110}
}
--params.click_function = 'ClickFunction'
self.createButton(params)
spawnObject({type = "BlockSquare", position=pos_target,
callback_function = function(obj) spawn_callback(obj) end})
end
function spawn_callback(object_spawned)
object_spawned.setLock(true)
end