Questions tagged [hierarchy]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
110 views

How do I get a reference to a component on a sibling object in C# Script?

I'm working on a game, where the player dumps trash from Trash cans into a Trash Truck. These Trash cans have a random chance of having a Racoon on top of them. I have a script set up to detect when ...
1
vote
1answer
118 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
1answer
31 views

Position/orient parent to place child at a particular position/orientation

I have a GameObject for which I know its world position and rotation. From another app, I receive a new rotation and position, which should represent the local position and rotation of my GameObject. ...
0
votes
1answer
91 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 ...
3
votes
1answer
279 views

What does the Node2D transform property do?

Following a Godot tutorial I encountered the transform property, but I'm not sure what it means nor how to use it. I read the official Godot documentation, but it ...
0
votes
1answer
34 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
2answers
40 views

How to access specific child indices (directly, not using tags or searches)?

I have a game object whose prefab is structured a very specific way. It is a conveyor belt. I intend to arrange them end-to-end and animate them all at once using a script. Right now I am trying to ...
-1
votes
1answer
4k 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 ...
3
votes
0answers
177 views

ASSIMP - Hierarchy Import

I'm, trying to wrap my head around assimp to import some files, including fbx/obj etc. Normally my experience tells me that I start at root node and then recursively load child nodes until I load the ...
1
vote
1answer
231 views

Efficiently calculate 2d world position based on parent(s) recursively

I am writing a small 2d html5 game engine in javascript that relies on the concept of a hierarchy. The scene is the root node or entity, and its children make up the game objects. These children can ...
0
votes
2answers
239 views

Is it more efficient to add scripts to each GameObject or to a single parent object?

Does a C# script added to a parent object work more efficiently and effectively (in terms of both memory and performance) on all objects, in my case lighting, or adding script components to each ...
1
vote
1answer
185 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.
1
vote
1answer
409 views

LIBGDX - group as child of an actor?

I've looked in forums, the doc, and the code, and I'm thinking this isn't currently possible, but maybe I'm missing something, so just to be sure: is there a way to set a group as child of and actor? ...
0
votes
1answer
683 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 ...
0
votes
1answer
151 views

Supporting uniform/non-uniform scale in hierarchical animation

I have worked with hierarchical blended animation systems for a number of years, but I have never been quite sure how to handle scale correctly. The introduction of non-uniform scale is additionally ...