Object swap - One animated behind other one

Published on ● Video Link: https://www.youtube.com/watch?v=4BkqadDuV_I



Duration: 0:10
79 views
4


local function hidestone(data)
local obj = scenetree.findObject("BigRock")
if obj then
if data.event == 'enter' then
obj:setHidden(true)
elseif data.event == 'exit' then
obj:setHidden(true)
end
end
end
return hidestone