I just remembered that I played this demo months ago and really liked it so I've just picked it up in the Steam sale. I'm looking forward to playing it today.
1. Have the scene override the game's 2D perspective, so that it is a 3D scene and works with 3D colliders on Hotspots (that way you can attach the Hotspot to the Draggable object directly)
I changed this setting in Project Settings > Editor htt…
Thank you so much Chris this works perfectly now, except I still have an issue when attaching a Hotspot.
When creating a Hotspot on the Draggable object, functionality remains perfect but the cursor does not change to show the object is usable whe…
Having experimented a bit more I have a clearer idea of the problem. When left-clicking and holding the button you can move the Draggable object, this works perfectly now.
However, if the cursor moves outside the boundary of the sphere collider the…
By "Inspector field", I'm referring to the Dynamic Drag Input component you've attached to a GameObject the scene. Is "Right mouse button" the exact name of the input you've defined in your Input Manager?
Yes it is exactly the s…
Sorry, I didn't answer this question directly :
A dummy Hotspot like this should typically be placed on the same object as the Draggable - is it placed on a child because yours is a 2D game, so that a 2D collider is necessary?
It was because the c…
A dummy Hotspot like this should typically be placed on the same object as the Draggable - is it placed on a child because yours is a 2D game, so that a 2D collider is necessary?
Without your DynamicDragInput script running :
With the Hotspot plac…
Thank you for your reply.
**Edited
I can now move the Draggable objects with the left mouse button but I can no longer pan the camera with either mouse button.
Occasionally the camera will move instead when pressing and holding the left mouse but…
Sorry if I misunderstood. I did exactly what it says here:
**_In Unity's Input Manager, create a new input named e.g. "Right mouse button", and map it to "mouse 1" (see Unity's docs on this here).
Then set the "Drag Overri…
What are you currently setting this to?
I am not setting that, so whatever is the default (My game contains almost no code written by me since I don't really know how to code).
Is the same camera active when Draggables are involved, and do the Dra…
Hi Chris,
I followed this advice for my 2D game and it works well. Right-clicking and dragging pans the camera and left-clicking interacts with hotspots.
However, now when I interact with a 'Draggable' game object on a track I must use the right m…
Hi there. I followed these instructions and I have the Object : Set Sprite Layer action availabe in my ActionLists but nothing happens when I use it.
There is no error message, the object simply does not change layer. I have tried it on a few diffe…
Did you have any luck with this? I'm making a 2D game and I want to be able to click, hold & drag e.g to pull a lever.
I got it working in the past with draggables but lost my project file and I can't reproduce what I did and it's driving me cr…