Comments (9)
The owner is reset on changing the parent, everything works as designed, so it's something to discuss as a proposal for changing behaviour, not something that's broken or a bug, see here, if you want the owner to be preserved use reparent
instead
from godot.
Does it work with find_children("Head", "", true, false)
?
from godot.
find_child("Head", "", true, false)
says too many arguments, but it works like this (I suppose that what you meant to check): find_child("Head", true, false)
from godot.
Meant find_children
my bad, but yes find_child("Head", true, false)
from godot.
got it, I checked also other variants:
find_child("Head", false, false)
- works
find_child("Head", true, false)
- works
find_child("Head", true, true)
- doesn't
find_children("Head", "", false, true)
- doesn't
find_children("Head", "", false, false)
- works
from godot.
Then it's expected, you haven't set the owner, the last argument filters only for owned nodes:
If owned is true, only descendants with a valid owner node are checked.
from godot.
I see, thank you very much @AThousandShips !
IMO: I have to say that it's counterintuitive. I never before was setting owner and it's unclear why it's true by default in find_child.
it is very contradicting when you clearly see it in the tree but find_child gives you null result nevertheless it IS still a child and it is in the tree but the owner is not set...
if so player.get_children()
should also give null result and have a owned
argument otherwise it's misleading.
from godot.
Please open a proposal for that, this is not a bug, but the argument can't be changed to false by default without breaking compatibility so won't happen in 4.x I'd say
from godot.
I believe needs to be reopen because the behavior is inconsistent. it's not only about find_child but the whole chain of actions.
if I do the same find_child before changing it's parent - it works. but if I change the parent and then return back to original parent - it doesn't work.
from godot.
Related Issues (20)
- Godot 4.3 export to Android release and debug issue aab files HOT 1
- Connect signal dialog controls not aligned
- Lightmap capture for dynamic objects don't work
- TLS Handshake error when using TLSOptions.client_unsafe
- OneShot GPUParticles keep emitting in AnimationTree HOT 1
- Broken icons in the gizmo visibility popup menu HOT 3
- setup_boot_logo: Non-existing or invalid boot splash at 'res://icon.svg'. Loading default splash. HOT 2
- Creating a "Call Method" animation track for a Node that already has a Position3D and Rotation3D animation tracks crashes the engine HOT 8
- Continously printing text to the console while paused HOT 4
- Scene instances with exported array would access same array ONLY if array was modified in editor beforehand HOT 4
- Entering Full Screen in macOS makes editor laggy and buggy HOT 3
- Error with Polygon2D-Editor
- Build with MSYS2+MingW64 fails to find required DLLs HOT 4
- Not possible to deselect Dropdown list with activated Single Window Mode
- AudioStreamPlayer, useless checkbox
- Can't assign a node not in the tree to `SceneTree.current_scene`
- PhysicalBone3D and PhysicalBoneSimulator3D is not following animations HOT 6
- `EditorHelpSearch` empty on searching HOT 2
- `EditorDebuggerPlugin` does not receive messages or respond to requests. HOT 1
- Make `Add Item Type` dialog List navigatable while the filter `LineEdit` has focus
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from godot.