Quantcast
Channel: Questions in topic: "parenting"
Browsing all 302 articles
Browse latest View live
↧

Parenting not working with massive force to rigidbody. Does having rigidbody...

Ok, so I have 3 objects a, b and c. a is a character, b is a hinge for a weapon and c is a weapon. c is a child of b and b is a child of a. When c hits the environment a massive force is applied to a's...

View Article


Strange movement artifacts when rotating children around parent object

Gif demonstrating the problem: http://i.imgur.com/8lHwFVD.gif Object hierarchy: http://i.imgur.com/ZlpuFX4.jpg Script attached to gun object:...

View Article


Controlling child sprites with one animator?

For the love of me I can't figure out how to control my sprites properly. I made a frame animation of a laughing skull, that is my parent object with Animator component and controller. I try adding two...

View Article

rendering panel w/children

I've created an enemy health bar using the new canvas UI. The panel is the parent and it has children, which are other UI components (sliders, text, etc.). When I start the game, it's suppose to...

View Article

The scale of my object after parenting to a moving platform

Hi I am trying to make it so when my ball object rolls on to my moving platform its scale isn't changed. Here you can see that i have layered my hierachy so the empty game object has my moving script...

View Article


Colliders scale on parenting and rotation

So I am having an issue with a cube. The cube has some box colliders added to it. But just after the cubes hits the stair on the picture, and land the colliders are all scaled. I looks like it is due...

View Article

How to parent GameObjects to a newly instantiated empty, if at all possible

Hi, fellow Unity 3d users. I'm pretty new to Unity 3d and scripting in general. I'm working on a falling blocks game. In the game there are multiple colored blocks of which each color of block will...

View Article

Parent mesh problem

I made a video to show what excacly happens. You can see me dragging the 2 weapons into the hierarchy, they appear in the scene. Then when I click on the play button, I show you where the 2 weapons are...

View Article


Camera follow rotating object

In all of my games that I've made so far I've made the camera a child of the main character. In this game the character is a sphere that you move around levels. I thought It'd be cool if I could have...

View Article


How can i set the parent of an instantiated object like a weapon to my...

My Inventory Script(Question is Under script) using UnityEngine; using System.Collections; using System.Collections.Generic; public class Inventory : MonoBehaviour { public int slotsX = 5; public int...

View Article

Does transform.root work when a parent is made the child of another object...

Does transform.root work when a parent is made the child of another object through script? It isnt working for me. In one script I create a weapon, "item" with a child and a child of that child, which...

View Article

How to reparent a button to a different panel?

I think I kinda know the answer to my question, but I can't seem to get it working right. Basically, I have 2 panels. One panel is a selection menu and the other panel is the usable panel. What I'm...

View Article

GameObject Shrinks when Setting Parent

I noticed when i parent my object, my child object scale changes to 0,0,0. How can i fix this? using UnityEngine; using System.Collections; public class ParentScript : MonoBehaviour { void Start () {...

View Article


Parent Multiple Clones to a New Parent?

I need to parent a series of cloned gameobjects tagged as "monarch" to a single gameobject tagged as "control". The script/s that instantiates them are written in UnityScript and too complicated for my...

View Article

Setting transform parents to Vectrosity canvases.

I started using vectrosity recently and I'm using it to draw a strategic circle around units and structures. I realized that calling myVectorLine.Draw() every frame for objects that are moving so that...

View Article


Unparent object on collision?

i am trying to make it where if you hit an object, a certain object that is parented to the main object becomes unparented, please help.

View Article

Instantiating a gameObject then setting its parent during runtime

I have seen similar questions to this and tried them but they didnt work for me. I have a simple gui in my demo, when a button is pressed another obstacle is supposed to appear at a random position....

View Article


Getting the topmost parent of other parent objects

Hello I am trying to figure out how to find the topmost parent object in the hierarchy of other objects. I have tried using "root" but that only gives me the parent object of the child object I call...

View Article

Why is parenting not working?

Hi, i have 2 cubes Test1 an Test2 and the Script is attached to Test2 but nothing happens. I tried so many things from the Forum but nothing worked for me, hope someone can help me with that. using...

View Article

Changing parent at runtime problems

Hi! **EDIT**: Well, the problem is that the game object scales down to 0, not a rendering problem. I'm not the only one having this problem (can we consider it an Unity issue?). If I reset the scale to...

View Article
Browsing all 302 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>