Infinite Loop? when Setting Parent
I'm running into an issue that I can't seem to figure out, though I'm sure it's probably something simple. Setup is an attempt to make a modal dialog box. I had a yes/no working, and I've duplicated...
View ArticleParenting via Networking
Hello there, I am making a game in which I got a player inside a moving space ship. When the ship moves, the player moves too. I accomplished that by parenting the player to the ship. On the other...
View ArticleGet axe/arrow to stick to object
I'm trying to get an object/projectile to stick to a tree, I've looked up other answers and have tried to implement, still don't understand why it's not working. -Rigidbody on Axe object. -Rigidbody...
View ArticleCreating a Wrecking Ball using Spring joints?
Hello, all. I'm trying to make a Wrecking Ball attached to a long Cylinder object(the Wire), both of which are Rigidbodies using gravity with Spring Joints targeted to the parent objects. I've been...
View ArticleHow to set the parent of an instantiated game object
I'm working on a simple "space shooter" game. I have a player prefab a player script attached. The following code takes place within my update. `//Activate Shield if (Input.GetKeyDown(shieldKeyCode)){...
View ArticlePulling boxes
Hello guys, I really need your help here because I'm starting to lose my mind >X I'm trying to write a box pulling/pushing code. The problem happens once you're between the two boxes while pulling...
View ArticleHow to access armature of a child object?
Hi, I'm trying to figure out how to bones of an armature that is part of a model that is a child object of the player object. Basically what I am trying to do is to make the "keyBone" bone rotate via a...
View ArticleSave the rotation after parenting
Hi folks! My team and I are working on a 3d game in Unity and we've encountered a specific problem that has us stomped. The game is first person, and we are attempting to make the player jump on a...
View ArticleWhy mesh render's object becomes black?
I have mesh render object which change its parent and layer when clicking on it, and if user up mouse button and object doesn't collide anything it change back its old parent and layer. In second case...
View ArticleHow is localScale adjusted when re-parenting transforms?
I am trying to mimic Unity's behaviour where it concerns transform parenting, and I'm stumbling on something I can't explain. Say I have 2 GameObjects. They both are without a parent. One is named...
View ArticleTemporary parenting for physics-driven objects?
Hi all, I've had a hard time finding an answer to this dilemma and was wondering if someone might have an idea. For a project, I have a box of wrapped candy bars. The needs of the project involve the...
View Articlevehicle/gameobject moving/listing/rotating when made parent of main character...
Very simple. 1. I created a main character 2. I make it a child of a vehicle game object using: Destroy (player.GetComponent ()); player.transform.SetParent(this.transform,true);...
View ArticleBones Move when giving them a gun?
I've run into this problem so many times So i have this terrible gun and Armeture-Figure i made.![alt text][1] So i place the gun into the bone of the Right Hand, and the bones move out of place? why...
View ArticleAnother another "Setting the parent of a transform which resides in a prefab"...
The other questions about this error don't seem to be caused by the situation that I will show. I'm on Unity 5.3.4. I have two prefabs, **Parent** and **Child**. **Child** is an empty GameObject (has...
View ArticleMesh Renderer glitch when switching its parent
Hey guys, I'm getting this weird glitch when changing my ball's parent. You can see the whole situation here: http://webm.land/media/JiPI.webm At first, the ball has no parent. I add some force to it...
View ArticleNullReferenceException with SwitchController script
My script wont seem to be working and I dont know why. It is supposed to tick whether your able to mount or not. If you are, and you press F, it should parent the player to the riderPivot and reset its...
View ArticleSetting the parent of a transform which resides in a prefab is disabled to...
Having an issue which has me pretty frustrated, have been through code numerous times and can see no mistakes at all and matches the code given perfectly as far as I can tell, however while defenders...
View ArticleCollision Detection Problems
Hello fellow developers. My game consists of a base building mechanic i am trying to code however is proving difficult to do. I wish to 'snap' the foundations together through the use of collisions. I...
View ArticleCanvas as a Child with Screen Overlay follows parent scale
Hello, I've got a character that get is Scale.x changed from 1 to -1 in various moments of the gameplay. I would like to use the HUD as a child of the character since i can customize it better while...
View ArticleGameobjects do not get parented properly, double gameobjects after instanciating
I am trying to spawn Units (Prefabs) and parent them to an empty gameobject and destroy the old one beforehand. Destroying works just fine. I have two Problems here. First i get a second empty game...
View Article