Quantcast
Browsing all 168 articles
Browse latest View live

How can I attach objects like a picture?

I wanna attach an object to another like a picture, when I drag an object near another. I searched and found some information. ex) obj1.transform.parent = obj2.transform; obj1.transform.localPosition =...

View Article


Make sure file name and class name match

I'm fairly new at Unity, (and by fairly new I mean *VERY* new) and I got this error when writing the script for a... um... thing named Health_box. When I got the error, I changed the line to "public...

View Article


Attaching 2 rigidbodies,

I need to attach 2 rigidbodies together. I found another question in the forum but it didn't really solve all my doubts. This is the code written by @SpacePilot1000 // Disable collisions with the...

View Article

Android attach debugging is always fail in MonoDevelop or UnitVS

I follow this Unity VS: http://sebastien.lebreton.free.fr/blog/index.php?/archives/53-Debugging-an-Unity-Game-under-Android-using-Visual-Studio-and-UnityVS.html Mono Develop:...

View Article

Unity Attach is gone!

Recently I updated my Visual Studio to Visual Studio 2017 and I also updated my Unity to 5.6. Right now, in Visual Studio the button for "Attach to Unity" is gone. Is there anyway to fix this problem?

View Article


How to attach one object to another without parent-child relationship?

Hi, As part of a project I'm doing, I need to model a ball with three accelerometers attached to it in Unity. To do this I've created a sphere that can be controlled through keyboard input, and...

View Article

Visual Studio won't attach to Unity, even after Vs Tools for Unity update

Hey guys, I have a problem that's been posted on here quite a lot, but mine has bit of a twist. I have 2 versions of Unity installed on my laptop: 5.5.0f3, which I use for most projects, as well as...

View Article

Failed to Android Debug on Mac

I can use Unity to build and deploy my app to Android device, I'd followed all the tutorials to do the debug, and it works before, but now I'm not able to "Attach Process" to Android device, is there...

View Article


Help with snapping and "gluing" parts together

Hopefully you guys can help me out, I've been stuck on this issue for a lot longer than I'd like to admit. I'm building a VR freeform Block Building game (basically a VR Lego freebuild game) and I need...

View Article


get child and assign it to a transfrom variable.

hello all thanks in advance, here we go: i have a ship, with a child object as the "Gun Tip", i instantiated this ship after the "ship selection menu". after the instantiation i assign it a script with...

View Article

How attach C# script by argument?

I am not native, so I might write strange English. sorry. I want to attach the script chosen by argument to GameObject. Example, when argument = "test1" , I want to attach "test1.cs". when argument =...

View Article

Problem in assigning component to variable

There are two scripts A and B which extend C class and C extends MonoBehaviour and there is a G1 gameobject that has A and B scripts. And there is D script that has public C cVariable and is attached...

View Article

How to set player as 3d model

how do i set this model as player and how do i make it so that the gun next to it is in its hands all times![alt text][1] [1]: /storage/temp/107136-capture.png

View Article


Particles system animation

Hello. How can I attach particles for character's animation? (for Attack)

View Article

attached prefabs before client joins

**Hello Guys,** I try to show the problem in short sentences: - ServerPayer pickups a weapon, which is attached to his hand, works perfectly, (player and weapon prefabs are in networkmanager of course)...

View Article


Attaching an object to another within runtime

Hey to all, I'm a pretty newbie in Unity and not that familiar with C#. I haven't found an appropriate answer to my question, so i hope you guys can help me. After weeks of trying I finally got my Code...

View Article

Visual Studios not letting me Attach to Unity

The visual studios "attach to Unity" button currently just says "attach..." and when clicked it brings up a window asking me to select where to attach to. If I find Unity.exe in the list it does not...

View Article


attaching object to another animated object

I want to attach one objects (spheres) to anothers that are animated (pipes). Doing it by hierarchy no matter how, at best is rotating both pipe and sphere around its axis, not the way the rigged model...

View Article

Adding in script. Look at details.

I am first attaching my script as the gameobjects Rings can only attach in play mode. They only appear one by one. I would like if it would find the game objects with the tag "Rings" and make the...

View Article

[Beginner question] How to grab/attach an object to the player and then throw it

Hello everyone i am new in Unity and right now i want to implement a mechanic in the prototype i am making(it's a top down couch-local-multiplayer game), where the player can pick up certain objects...

View Article
Browsing all 168 articles
Browse latest View live


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