Quantcast
Channel: Questions in topic: "attach"
Browsing all 168 articles
Browse latest View live
↧

Attaching an object to a camera movement weird, Help!

So I made a gun model in Unity, and attached it to the camera, just by parenting the camera to the gun model. When i move the camera, the gun moves just fine with it. The only problem is that the way...

View Article


Is there any way for attaching a hierarchy GameObject to a pregab Inspector?

Hi All, I'm making a small game in that I want to attach some gameObjects from the hierarchy to the prefab inspector. In runtime I'm instantating that prefab as a building. In that building I need...

View Article


How to attach an Object to my player

Hello Guys currently I am working in my first Video game in a 2D platform but I got stuck because I still dont know how to attach an object to my player, for example, I want my player be avle to pick...

View Article

Click and Drag with wall snap

Firstly, sorry on my bad english :) I'm trying to make click and drag function for objects that are attached to walls and celings. So objects can't be dragged in the middle of the room not attached to...

View Article

How attach one sphere to another sphere on draging of sphere

hai friends. Here i have so many spheres in bottom of screen, and i am trying to take them into middle of screen one by one. When i am dragging one sphere nearer to another sphere, this sphere should...

View Article


Attaching objects on collision

I have a script that on the collision of two 'parts' one is parented under the other. If I drag the parent object, both objects are moved, but if the child is dragged, only the child moves. I don't...

View Article

Can't Add Script

I cannot add a script to an object It says "Can't add script behaviour CharacterMotor. The script class can't be abstract . Here's the script. using UnityEngine; using System.Collections; public...

View Article

How to have an object attach to my player when collided

When my player walks into this object, in this case a cube, I need it to simply attach to the player as if they're carrying it. This is what I've done so far. var blockTransform : Transform; var...

View Article


scripts as a addcomponent to a gameobject

Hi, I've read the reference to AddComponent but its not making sense and when using the mono editor, its still not making sense. here's where i am stuck at: Apple A=new Apple; A.setName("Green Apple");...

View Article


Unity prefab into 3dsmax or another 3d software

Hello everyone :) I'm trying to make endless runner game for android and I'm kinda stuck because my prefabs have too much meshes so it's running slowly. Do anybody here know maybe how to export prefab...

View Article

How to target a gameobject in C# to play animation

I have a script attach to my Character but i want to make the enemy play an animation from that script, so i think i should target the game object (or the enemy) and play its animation on my character...

View Article

Attach a Player to a moving GameObject

[Edited for more precision] Hello ! I've a "playerObject" (that is a prefab, with a rigidbody [gravity set to true]) and when i enter a specific collider (where this script is attached to), i need this...

View Article

Hi, I am new to Unity, and I am having a problem with attaching one object to...

I am following a youtube tutorial by Chimera3D (Part 3 of RPG series), and I am trying to merge 3 objects(coconuts) to another object(tree). For some reason, when I start the game, the coconuts...

View Article


when i attach gameobject i don't move

Hello all, i'm learnig unity from scratch and at [this link][1] you can see waht i make with a lot of effort :) Istructions: 1.with 20click on a tree, the tree will fall 2.with 20click on a falled tree...

View Article

Applying a texture to a sphere

I've been trying to figure out how to apply a texture to a sphere in Unity. Everywhere I look, I get the same answer: "Just drag and drop the texture from the Project pane onto the sphere (in the...

View Article


How to connect tire 3d mesh to the wheel colliders?

I'm trying to create a vehicle with realistic physics. Ok I've been looking at several tutorials about Wheelcolliders. I know they shouldn't be parented to the wheels but instead to empty Game Objects,...

View Article

How to make Enemy grab the Player with animation?

Hi guys , I'm a beginner in C# and I can't figure out how to attach two game objects with each other using animations, just like a zombie grabbing the player with animation and we need to press buttons...

View Article


Cargo ship flies out and picks up box?

I'm trying to make a cargo ship appear (instantiate), approach a box, pick it up, and then disappear with the attached box once it returns to the "mother ship". What is the easiest way to make this...

View Article

Fix a body to interact with two other bodies

i have a cut which is in the shape of a rod.this is joined to a cylinder in the scene using a fixed joint.now i want to attach it to another cube in the scene which moves here and there .on using the...

View Article

Click and Drag with wall snap

Firstly, sorry on my bad english :) I'm trying to make click and drag function for objects that are attached to walls and celings. So objects can't be dragged in the middle of the room not attached to...

View Article
Browsing all 168 articles
Browse latest View live


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