Issue#1428: Unity - Drag and Drop on one side of game object

  • I intended to create a puzzle game in which all the player need to do is dragging the object to the correct position.
    To illustrate this, I attached an image below (It's only using paint since I'm no artist).
    Let's say there's two power sockets on each sides (Red and Yellow), and there's a red cable with each other end attached on the different color sockets.
    What I intended to do is, how to make the player able to drag one end of the cable (I marked it with a little green circle) to put it...

    Drag and Drop on one side of game object

    0 Answers

    Sorry, your answer is too short !

  • Issue#692120: Unity - Drag and Drop a game object into public field in inspector

    Hello, I'm a total noob and just started learning C#. I watched all the beginner videos for programming with unity and now I wanted to try some stuff trial and error style. I have the following problem now: I attached a script to my FirstPersonCharacter. In that script, the only thing that I wrote was "public GameObject gun;" which I can also see in the inspector now. I created a Cylinder and I wanted to drag this object into that field in the inspector, but it just won't attach. Why?... Drag and Drop a game object into public field in inspector

  • Issue#101846: Unity - [RELEASED] Drag and Drop Strategy Game Template

    Classic strategy game template with "Drag and Drop"type (most comfortable for mobile devices). Using this asset you can create game with galcon-style mechanics ​Asset Store Link:... [RELEASED] Drag and Drop Strategy Game Template

  • Issue#247262: Unity - Multiple instances of same scripted component in game object doesnt work in server side

    Hello community, i have been figthing against a strange bug while i'm developing a multiplayer game. I have an Ability class which is the base for every ability in my game. On the other side, i have a prefab that has two of this Ability as components. The problem is when i play the game with a server-client and a client, everything works fine for the server-client player, but for some reason, when i cast any of this Ability abilities from the client player, the server only cast the first... Multiple instances of same scripted component in game object doesnt work in server side

  • Issue#296193: Unity - floating game object script issue

    So I'm trying to make a First Person Shooter for mobile. I have these three scripts but every time i go near my 'enemy' my Gun floats off in to the air, I'm new to coding so have no idea what i've done wrong here Code (JavaScript): function OnGUI () {      if (GUI.RepeatButton(Rect(10,70,50,30),"Shoot"))          GoTriggerHappy(); } function Update () {      if (Input.GetAxis("Shoot"))          GoTriggerHappy(); } function GoTriggerHappy () {     if(Input.GetMouseButton(0)) {         var... floating game object script issue

  • Issue#536604: Unity - Drag and drop color onto an object

    I have a series of colors that are in image form, like a picture of the color blue. I want to be able to drag and drop the color onto an object to change it's color. If anyone knows a better way of changing an object's color do let me know because this one was the first thing that came to my mind.

  • Issue#821411: Unity - [RELEASED] Drag and Drop Strategy Game Kit v1.2.3

    Classic strategy game template with "Drag and Drop" type (most comfortable for mobile devices). Using this asset you can create game with galcon-style mechanics. ​ ​Asset Store link:... [RELEASED] Drag and Drop Strategy Game Kit v1.2.3

  • Issue#823810: Unity - [RELEASED] 2D Platformer - Drag and Drop game Asset!!

    The 2D Platformer is now officially available in the Asset Store: https://www.assetstore.unity3d.com/en/#!/content/55498 About the Asset : This Asset is perfectly suitable for any one who want's to create there own basic 2d Game in just couple of minutes. All you need to do is drag and drop premade assets to create your own customized level. To make shore that you have varieties of ways to customize your game, this asset also contains over +900 art sprites, which... [RELEASED] 2D Platformer - Drag and Drop game Asset!!

  • Issue#956406: Unity - Drag drop game objects (without rigidbody) with the mouse

    I've searched and read, but haven't found any satisfactory answers.. Lets say I have a clean project. I add a cube. When pressing play in Unity3D I want to move this cube with my mouse. Pseudo code: Code (csharp): function OnMouseDrag() {   // move gameObject along with the mouse   // transform = Mouse.transform ?? } There are no rigid bodies involved, so I'm guessing this should be fairly simple without a lot of code?

  • Issue#1039230: Unity - Top Down 2d Game - Checking which side of an object i am hitting

    Hey Everyone i am creating a top down 2d tank game which the movement is done by changing the transforms. At the moment I am having problems with knowing when to reverse the speed of the bullet object and flipping it to move in the opposite direction to which it hit.... I want to know if i do hit the side of the object (left or right) to just reverse the x transform speed, and if i hit the top or bottom is to just change the y transform speed. ... Top Down 2d Game - Checking which side of an object i am hitting

  • Issue#1109945: Unity - Anuimated object moves to far side of terrain when game play is pressed

    I created an animated rotor in Maya, exported it as an FBX with a short animation. Imports just fine, but when I press the "game" play button to test, the object jumps over to the far corner of my terrain and also goes to ground level. Been at this one all day. Appreciate the help, thanks.

  • Issue#1134764: Unity - Chicken & egg issue > Coroutine & SetActive to control visibility of current game object

    Hi I am using a simple coroutine to delay showing a game object. I am using SetActive for determining the current GameObject's visibility. However, in order to start the coroutine, SetActive must be true which makes the game object visible BEFORE the coroutine delay has completed. Is there an easy way around this? ie gameObject.SetActive(true); StartCoroutine(DelayVisibility());

  • Issue#1490: Unity - Drag and Drop in 5.3

    The page at http://docs.unity3d.com/ScriptReference/EventSystems.IDragHandler.html shows a script that doesn't not function (at least for me) in Unity 5.3. I could not find a fixed version anywhere so I fixed it as best as I can figure out and I thought I should share it here. If not correct, it at least functions for now. Code (CSharp): using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI;   [RequireComponent(typeof(Image))] public class InventoryDragController... Drag and Drop in 5.3

  • Issue#3038: Unity - Object counter issue: not working

    I am trying to make a script that counts objects in a list that are already active, I want my activeAmount to increase by 1 whenever a gameobject in the array is set to false, however I seem unable to. So far it either increases by 1 and then doesn't change, or it continuously increases without stop, any help is appreciated. I couldn't find any other question posted that dealt with this. Code (CSharp):  using UnityEngine; using UnityEngine.UI; using System.Collections; using... Object counter issue: not working

  • Issue#3737: Unity - Drag & Drop of Material into Viewport not working correctly

    When trying to drag & drop a Material from the Projects window on top of an object in the viewport, the material is applied to many/all objects under the mouse pointer, even though the material has not been dropped yet. Additionally, sometimes an object does not apply the material at all (see the GIF). The material has not been dropped during the recording. The drag & drop indications in the tree view of the Project window (I am talking about the... Drag & Drop of Material into Viewport not working correctly

  • Issue#4281: Unity - Pick n Drop [New Android Game]

    Hi Guys, We would like to introduce our new android game Pick n Drop. Pick n drop is a strategic package delivery game which provides a pursuit gaming experience where the user picks the package and drops it at the delivery point before the time runs out. Collect the package and deliver it on time to get rewards by evading from the cops. It has three levels in it. In each level, there are different number of vehicles available to pick and deliver the package. Experience it now!... Pick n Drop [New Android Game]

  • Issue#4690: Unity - EXPOSED REFERENCES. No drag & drop. No coding.

    Do you spend way too much time drag&drop referencing your components? You find yourself recreating them over and over again and with little control over how they are actually configured? Or maybe you set references in code, so you cannot see them in inspector and end up frustrated with the slow scene loading? In the next few days, I’ll be releasing my first plugin, EXPOSED – rule-based references, to the Asset Store. This plugin will save your time and nerves with the references... EXPOSED REFERENCES. No drag & drop. No coding.

  • Issue#4823: Unity - Spawn prefab around game object and push them relative to rotation. 2D

    Hello, I just started my new game and i'm already facing a situation that i can't solve. In this game there will be a ship that spawn bullets and after some time push this bullets relative to it's spawn rotation, in this case i want this bullets to be spawn and pushed around the game object in a circle. I already managed to make the spawn script: here's the code, and here's the result!. This is almost what i... Spawn prefab around game object and push them relative to rotation. 2D

  • Issue#10813: Unity - show a question after my game object is destroyed (3d game )

    Hey everyone i'm making a game for my univerty project i'm making a roll a ball game with question my problem is i don't know how to show my question after my game object is destroyed so till now i just make my ball destroy an object that's all so please help me , and thanks

  • Issue#11818: Unity - Possible to do drag n drop in ScreenSpace Camera ?

    I have set up a simple scene with 2 panels and 1 Text in each panel. In ScreenSpace overlay, drag n drop works perfectly. But when I switch over to ScreenSpace - Camera. When I dragged the text UI, the item being dragged would disappear. I looked up google and found this http://answers.unity3d.com/questions/849117/46-ui-image-follow-mouse-position.html I have tried the solution provided on this page but it didn't help. Can anyone point to me tutorial on how to set up a drag n... Possible to do drag n drop in ScreenSpace Camera ?

  • Issue#12442: Runtime issue with 64bit Unity game integration into iOS native app

    My company integrates Unity games into our native iOS app. Basically our iOS app would run the Unity code when a user decides to launch any of the games. With the past 32 bit of Unity and native iOS code, we were taking Unity generated Xcode project files, and compile them into a static lib for the native iOS app to use. Whenever the user chooses to launch any of the games, UnityAppController would be loaded, and ran. This worked well for us. But with the latest 64 bit builds, the same... Runtime issue with 64bit Unity game integration into iOS native app

  • Issue#13666: Unity - Animation causing game object to disappear(gear vr)

    Hey all, Made a simple animation on a character via unity animator. The animation is simply a path for a guard to patrol on. It works fine when im just tweening between positions but as soon as I add rotation to the animation, my guard never shows up. he simply disappears. This doesnt happen via game scene play mode in unity editor, only when i run the game on the gear vr. please help. anyone else seen this? its hard to debug when i only see the issue when i plug it into the gear vr.

  • Issue#43419: Unity - 2d game flip game object on x axis to face the other way based on mouse position

    Hi Guys, How do I go about flipping a character on the X axis in a 2D game? I have a shooter named "Player" that follows the mouse and i need this guy to do something like if mouse X position is less then Player's X position flip the Player Game Object to face left and VS so another words as the player looks and aims at the mouse he also looks good when the mouse goes behind the player

  • Issue#51464: Unity - Drag and drop stopped working in Editor

    I was attempting to import a .c4d asset using drag-and-drop when unity halted and warned me that it needed to install a new importer so that it could handle that file type, but it had to be run in administrator mode to do so. So I exited unity, restarted it as admin, and attempted to import the file - but drag and drop wasn't working any more. So I had to use the menu function to import the c4d file. That succeeded, so I'm guessing whatever mods unity needed to make had been made. But now... Drag and drop stopped working in Editor

  • Issue#54758: Unity - Move object by touch and drag

    I'm trying to get a gameobject to move by touching and dragging it, and while I've gotten that to work, the object doesn't stay in the same position relative to my finger; as it tends to move around a bit depending on the drag movement. Also, the object moves regardless of whether the touch was on it or on any other part of the screen, and I'm not sure how to check if it was and still is being touched. I'd appreciate your insight. Here's my code: float speed = 5.00f; if (Input.touchCount >... Move object by touch and drag

  • Issue#61302: Unity - Server game object hierarchy is not the same as client game object hierarchy

    Spawning game objects across the network is flaky, as I see it. On the server, the object hierarchy is far more "different" than on the client side. As you can see, I spawn them in a nested way on the server, however, the client does not correspond to the nested spawning, and thus creates a different layout. How do you organize them, so it is consistent on both the clients and the server? I tried prefabs, but they only work when game objects are... Server game object hierarchy is not the same as client game object hierarchy

  • Issue#65278: Unity will not drag and drop my audio file

    I downloaded some audio sources from online but Unity is not allowing me to even drag and drop the sources into the assets folder. I would like to know why this not working. I am using windows 10 and the downloaded source uses Groove Music or Windows Media Player.

  • Issue#69062: Unity - lag issue while testing the game

    i developed a video game that player controlling the ball form characters. when i start the game with standart networking settings, gameplay becomes so much laggy. i changed the settings, it getting little more smooth, but still not enough. when the objects crashing each other lag came forward again. what should i do about this?

  • Issue#75445: Unity Drag and drop code scripts for people who don't know C# or mono?

    is something like this possible? where the user can create code though d&d code? maybe even learn C# though the d&d I have already seen that users can create their own ui's within unity so I was just wondering

  • Issue#75885: Unity - 2D Game - camera zoom only one object not the whole scene

    Hi unity friends, I'm new here and I'm doing stupid things in unity, but want to try and study more and more, so... Now I'm creating a game in 2D (here's maybe the stupid part) I have two objects, a pipe (a circle with hole that looks like a pipe) and a "player" that should go into the pipe. Because I'm beginner and can't create 3d models for the pipe and to put the player there, my idea is to create a circle and slowly to zoom the camera. In this way it will looks like the... 2D Game - camera zoom only one object not the whole scene