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

Can't proberly animate child. Causes slingshot effect

first of let me explain what i mean by showing this gif: http://imgur.com/aKh2EZj? It really doesn't make alot of sense. And the longer i put the child right in that second keyframe, the more it goes...

View Article


Does the parent Rigidbody compensate for children?

This is concerning 2D objects. From what I understand and experienced, having a Collider on a moving object without giving it a Rigidbody is inefficient. Also, from what I have read here, a child...

View Article


Trying to add a script to a parent?

I am trying to add an instant kill script to an object through a child but I cant find the function that allows me to do it. I have tried giving the parent the script and using 'gameObject.enabled =...

View Article

Strange wheel rotation

Hey there! I'm trying to make a car game, and at the moment i'm working on the wheels. I want the wheels to rotate when the wheel colliders rotate. In my hierarchy the car has an empty game object as a...

View Article

Cant parent the standard FPSController during gameplay

I'm parenting the standard assets FPS controller during play with a simple script. The controller get's parented but also instantly inherits the rotation of the parent. This doesn't happen in Editor...

View Article


Ideas on how to make a screen with a pixel system?

My goal is to make a low res screen that displays with "pixels." That is, not just parented text / color block textures. Even though I don't think it would, if that ends up giving better performance, I...

View Article

How to make an object parent to a Camera through code?

I'm trying to make an object in which I am able to click, and it will become a parent to my camera. I thought I knew how to do this, however, when I click it, it grows instead? Can someone explain why,...

View Article

Toogle Parent to Camera Function - Google Cardboard

Hi, I'm trying to test the google cardboard SDK. I wanted to create a Cube that on click (tap-magnetic trigger) parents itself to the 'Main Camera' (Camera Object name) and on the second click...

View Article


GameObjects can't be moved after being the Main Camera's Child

Hello there, I'm writing on an infinite Runner and so far everything worked great. Now I wanted to establish a Bumper Object (A Quad), whose BoxCollider2D has a Trigger to remove Platforms who already...

View Article


Animations with Colliders

So I have a character with 3 animations, which are a pretty standard run, vault, and climb. All that it is is a character controller with the actual rigged playermodel as a child object. I recently...

View Article

script add prefab instances to empty gameobject

I want to add multiple instances of a prefab to my scene on start and make them all children of an empty GameObject. This is what I have: public class LightWave01 : MonoBehaviour { public Transform...

View Article

bullet holes parenting

hi, i want to parent my bullet holes to the object they hit so if the object moves the bullet holes move with it and dont get stuck in the air. here's my code: #pragma strict var bulletTex :...

View Article

How do I unparent an object by scripting

How do I unparent the object once i stop holding down the mouse button? if (Input.GetKeyDown(KeyCode.Mouse1)) { GameObject.transform.parent = gameObject.transform; } else if...

View Article


Mess up with triggers, colliders and all this stuff :(

So, I want to code grenades. Right now I have a trigger and a boxcollider in them, with a rigidbody2D too. The problem is. I want the player to take the grenades with E, if its inside it's trigger....

View Article

Parenting GameObject to another animated GameObject

What's the best way to parent GameObject to anoter animted GameObject? It seems like Unity locks all transforms in the hierarchy of the animated object. I'll give you an example of what I'm talking...

View Article


2d: Animating a child's transform will lock the Parent in place

I'm parenting a weapon sprite to a character i have, and it seems that animating the transform of this weapon will lock my parent character in place, unable to move, suspended in the air. the animation...

View Article

Unity server/client player attachments parenting

Hey So i have stumbled upon a problem with attaching items or objects to a player on run time over the server and network, the spawning is fine and parent attaching seems to be fine aswell for own...

View Article


Unable to Parent to a canvas

Im simply trying to parent a prefab to a canvas, there no problem instantiating the object only when i parent via "SETPARENT" it breaks the scene; when i drag it in runtime to the canvas theres also no...

View Article

How to add a script to a parent object and not every individual child object.

I am in the process of making a sandbox game in **Unity 5.3.5**. Every block is inside of a parent directory and to destroy them, each block has a script assigned to it that deletes the block game...

View Article

On a twice nested object, how to get the local position in terms of the...

Hi, So, imagine a cube. This is the larger parent. This cube is made up of a bunch of smaller cubes in a 3x3x3 formation. Each of these smaller cubes is a smaller parent made up of six faces. Large...

View Article
Browsing all 302 articles
Browse latest View live