Parenting sphere to hand on rigify rig causes scaling distortion
I have a character I've rigged and animated using rigify in blender. I want him to throw a ball, so I created a sphere in unity and am parenting the sphere to the characters hand on the rig. When I...
View ArticleHow to Dynamicaly assemble an Object in your Resource Folder
Am trying to dynamically create a platform but I want the tiles to randomly assemble depending on length and type of tile/object I want to be part of the platform. Example = stands for a piece of the...
View ArticleC# | public variables in parent class should not show up in child class
As the title says I have a parent class "Main" and I have several public variables. Now I would like to know if there is any way that these variables dont also show up as public variables in the...
View ArticleHow to make a persistent player a child in a new Scene?
Hi community, I'm new to Unity and have a problem right now. Also English isn't my native language, so please bare with me. I made my player object a singleton script, so I can keep it througout my...
View ArticleGameObject parenting during runtime
Hi, this is my very first post in unityAnswers, and I'm quite new to unity. Hope you guys can help me out. Let's say I want multiple prefab object called childTile, it parenting another single prefab...
View ArticleHow Do I Check If Something is Nested
This is for a class. I drug two objects on top of each other to establish a parent/child relationship according to the textbook. But if there a way I can confirm they are nested? Sorry, this is my...
View ArticleGameObject with 0,0,0 position not being in the center
I have a rather big GameObject which is parenting many other game objects, and when I try to align the parent game object to the 0,0,0 coordinates, it does not go there, it is like its pivot point is...
View ArticleHow to Allow a character to still jump once parented to a moving platform
Good day, In my scene, I have a moving platform that moves up and down (Y-Axis). In my script when my player collides with this platform, then the platform is parented to the player's rigidbody so they...
View Articleanimator showing current animations but character still in t-pose
Animator controller attached to my character has blend trees. I put together some objects with trigger colliders for orchestrating different reactions of the character. Sadly though after i parented...
View Article[Solved] Animation destroying along with the GameObject its a child of
So I have a shield system that is on my enemy ships. When I shoot the shield, it animates getting shot and when shot enough it has an animation for the shield going down. Except when I shoot it with...
View ArticleParenting a sprite pixel perfect to an animated sprite
Hi, I have an animated sprite of a running character and a separate sprite of a helmet.Sometimes the character wears the helmet sometimes it doesn't. When the helmet is parented to the character I'd...
View ArticlePlay two animations with parenting
I need to play a bite animation that moves the enemies neck / bitten body part with the mouth of my player. I imagine I would need two animations, a bite animation and an animation on the enemy but I...
View ArticleAny problems with parenting my Mech parts to its armature bones ?
So I want to add mesh colliders to my mech parts, and ofcourse adding them to an animated object using an armature doesnt work since it doesnt follow the animation. Because its a mech there is no parts...
View ArticleEditor randomly unparents game object after InstantiatePrefab() & SetParent()...
Hi, My problem is at edit time, not runtime. I have a monobehaviour class 'MyBe', and its CustomEditor class 'MyBeEditor'. I have a 'MyBe' component on a game object 'MyGo' in my scene. I select 'MyGo'...
View ArticleParenting an object causes it to change rotation
When I parent a child object to rotated parent object it makes my child object to change rotation. This happens in edit mode and play mode. Why this happens? I thought objects should stay visually same...
View ArticleControlling 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 ArticleSet Parent EditorScript
This is a snip of my code. I am using Editor script to instance obj into the scene. My objects that I am instancing are to replace objects that are already placed. It grabs their positioning and...
View ArticlePhoton Cloud parenting instantiated gameobject
Hi! My problem have no answers in internet and forums, I did't find any. Help me, people! When starts game scene, I instantiate player car, that is composed of 4 objects: car base, car body, car back...
View ArticleProblem assigning parentin C#
Hello, I'm trying something very simple, an electron orbiting an atom... my C# code is the following public class AtomScript : MonoBehaviour { public int electrones; public Transform electronPrefab; //...
View Articlecube stacking while parented
due to warping issues, all my cubes have a scale 1 parent. i need them to be able to be parented by their parent transform so they wont warp horribly when unparented. i also need to make them stack...
View Article