Questions tagged [hierarchy]
The hierarchy tag has no summary.
31 questions
1
vote
1
answer
119
views
Is there a way to filter/search only the children of a selected gameobject in the hierarchy panel?
I'm not sure if there's a setting or wildcard I'm missing, but when I search in the hierarchy panel the results are presented in alphanumerical order with no reference to the hierarchy of the ...
2
votes
2
answers
3k
views
When/Where to use Node2d as parent vs Other Node
tl;dr = When/Where/Why use 'Node2d' as the parent vs going straight to 'Other Node'?
I have just started diving into using Godot for the first time. I completed the Your First Game official tutorial (...
0
votes
0
answers
3k
views
Hierarchical relationships in an Entity Component System
I'm trying to figure out how to integrate entity component systems with scene graphs in a web game / application. The problem is of course that ECS and scene graphs are very different in nature. They ...
2
votes
1
answer
76
views
How to organize game entities that are stored inside other entities?
In my GPS based game, there are certain structures the players can build that store units. For example, airbase structures store aircraft objects. Currently, the way I have this organized is the ...
1
vote
3
answers
5k
views
Best practice for getting references to specific child objects in Unity
When structuring the script to control a game object with several generations of children underneath, I gather from one of Jason Weimann's videos that it's a bad idea to use the string based methods ...
0
votes
0
answers
158
views
How can I organize in Unity's hierarchy GameObjects that are spawned in a nested structure?
I'm wondering how I can organize instantiated GameObjects that are spawned in sort of a nested structure. I'm spawning these GameObjects via Containers, a set of ...
0
votes
0
answers
50
views
Move animation bones hierachy
I took an asset from the asset store with some animation.
The animation expect the Animator to be put directly on the object that contains all the bones.
=> fbx (with animator)
=> bones
I would ...
1
vote
1
answer
2k
views
Difference between methods - onClick.AddListener and On Click under UI button inspector?
Within my Unity Project in my code, (see below), I have a button called Check which executes when CheckPress() function is called. I read two approaches by which this can be done.
Appraoch 1: Using <...
0
votes
1
answer
1k
views
matrices and nesting hierarchy with game objects
Let's say we have some game objects and they are nested to form a tree:
- A
- B
- C
- D
If each of those have a matrix for the scale, rotation and ...
0
votes
1
answer
137
views
How can I apply UV mapping in parent space?
I'm trying to apply UV mapping in parent space - ie. taking into account the object's own transformation matrix but no matrices further up the transformation hierarchy.
For example, I'd want to be ...
0
votes
2
answers
17k
views
Looping through children in a foreach loop
I have a gameobject with a bunch of empty gameobjects as children that I want to use as spawn positions.
I want to loop through each of these positions and have a certain amount of probability that ...
1
vote
1
answer
1k
views
Object scales strangely when setting y rotation after parenting
I created 3 boxes, then align the three to form some sort of a gate,
I set the parent to an empty object so that I can easily move it. And I add box collider inside the gate.
When I try to rotate it ...
0
votes
1
answer
409
views
how to place object relative to parent at x distance specified
My application:
Place furnitures or construction objects (doors/windows) in scene.
Everything is fine until I touch the construction objects. Since the application is mobile, it will be hard for a ...
1
vote
1
answer
466
views
Add picture in the Hierarchy view in Unity
How can I add a picture in the Hierarchy view in Unity? For example, Dragon bones does it automatically. Here it is :
As you can see there is a picture on the right of the gameObject name.
0
votes
1
answer
1k
views
Unity, Detect the last GameObject in the hierarchy of a given list of GameObjects
I have a list of GameObject , and I need to know which one is the last in the hierarchy ( This is for a UI system, So is kind of 'which one is showing up')
I have a cursor managed by GamePad , and I ...
4
votes
1
answer
9k
views
Object scaling when parenting by script
How do I make it so an object doesn't scale with another object that I parented it with by script? If anyone knows how to get around this I would really appreciate it.
This is the part of the script ...