Closed FlorentP42 closed 2 months ago
@FlorentP42 hi!
Thank you for opening a new discussion for this one. To avoid misunderstanding, this is still relevant in the 1.5.4?
Honestly I did not try it again since the update, but I doubt this would have changed without any mention to it in a patch note? If I can find some time to test it again in the latest update I will let you know :)
Well, I could not reproduce it with the example above in 1.5.4
So either it was fixed or the issue I had with the larger prefab file was not correctly reproduced by this example...
In any case I will close this ticket assuming it was fixed ^^
Describe the bug
So there might be several issues into one here but the main issue is: if you have nested scripts, then all the elements inside the inner script will not be found when calling global
Find()
/FindAll()
functions in the outer script.If this is a feature then, please change it or give an additional parameter to the
Find()
functions to handle that case... It is a real pain to have a script browsing all elements from the whole scene in order to find back one of its own sub-elements when theFind()
functions are supposed to do precisely that by default but you notice some elements are missing...Steps to reproduce the behavior
prefab.xml
in your mod root dir:script1.lua
in your mod root dir:script2.lua
in your mod root dir:dummy.vox
.spawn.txt
.script1.lua
only finds the entites taggednested1
andscript2.lua
only those taggednested2
.Expected behavior
script1.lua
also finds the entities taggednested2
.Environment
Additional context
Extracted from #345 as the topic discussed in that other ticket ended up being quite different than the main issue.