Forum rules - please read before posting.

Draggable Grab problems

Hi
I have a problem setting up a draggble. My game is 3d dirrect but in this scene i am having a 2D layout with a spirit background and just to nib handles to move along a track.
As can be seen in the screenrecord video, when i set up components and then run the game... i try to grab the nip for hundred times but only one time randomly the grab takes place and i can move the nib jusst a little bit only by chance.
I can not garb the nib and move it along the track simply and easily.
what am i doing wrong?

(I have also played with the Movables ray lengh in Settings ... from 10 to 100 but it did not changed any thing)

Link to the video:
https://rumble.com/v3ntt8s-ac-moveables-draggable.html

Comments

  • I think i found the answer.
    I just reduced the "Drag treshhold" in the Settings manager to "0" and now everything feels fine.

  • edited October 2023

    AC is so great. Thanks

  • Some days ago i solved my problem about dragging game objects.
    I solved it by seting the drag tereshhold to 0.
    Now I was testing my game and noticed tha I can not drag inventory items to anymore which means crafting is imposible.

    When i increase the Drag treshhold i can again drag and drop inventory assets. but again i can not drag the draggable objects.Please let meknow how i can have them all together?

  • You can alter the drag threshold at runtime through script if need be - see this tutorial.

    It shouldn't be necessary to set the threshold to non-zero for dragging items, however. What are your AC/Unity versions, and can you provide steps to recreate this issue, starting from e.g. the Demo game?

  • Thanks for the help.
    Unity Version 2020.3.30f1 Personal DX11
    Ac Version 1.78.04

    Since I am far away from being as smart as a programmer, I can not use API and scripts.honestly I can not write any scripts at all.
    Even i tried once to learn that costume Action Tutorial but i ended up disapointed after 3 times of struggle to copy what is said must be done to make the script work.

    by the way
    Have you seen the video I provided above??
    ?here is another Video i just recorded:
    https://rumble.com/v3oyrij-drag-threshold-ac-0-or-0.0000001.html

    When the Inventory menu is active, the drag works fine even for draggable.
    I also just recorded one scene with Drag Threshold 0 and one with Drag Threshold 0.0001 . it is the same with 0.00000000001 when it is just non-zero , then the Menu ui works but Draggables are so hard to drag.i must click 100 times to drag by chance. but when drag Threshold is 0 , I can drag the nibs as it is expected but i can no more drag inventory items.

    I could not well understand this "can you provide steps to recreate this issue, starting from e.g. the Demo game?"
    I think in the video these are shown. In fact i did nothing as much as i can understand. I added a game object and i added draggable component, rigidbody and Straight Track. I added a Box collider in addition to Spehere colider(which i above all in inspector)
    I struggled to make it work but the only way i could have it work was to make Drag threshold to Zero. then i thought the problem is solved.
    after copule of days i noticed that now my inventoy is not draggable and thus nont usable .

    Let me add : some times maybe 1 from 20 times i run the scene , I experience that i can drag the nibs easily even when Drag threshold is 0.0001 or non Zero. especialy some times when i open close inventory menus, i see that draggables can also be dragged. but it seems arbitary since it is not like every time. only some times.

  • edited October 2023

    The issue right to focus on right now is the Inventory not being selectable with a drag value of zero. The video shows the issue occuring, but it's not enough for me to see why or recreate.

    If you temporarily set your Menu Manager's asset file to "Default_MenuManager", which uses an Inventory bar at the top of the screen, does it work? If so, does it also work if you set this default Inventory menu's Source to Unity UI Prefab?

    If you can send me a .unitypackage of your game's Managers, your Inventory menu's UI prefab, and related Inventory assets (ActionLists / animations that run as part of its turning on/off), I will take a look.

  • Thank you

    If you temporarily set your Menu Manager's asset file to "Default_MenuManager", which uses an Inventory bar at the top of the screen, does it work? If so, does it also work if you set this default Inventory menu's Source to Unity UI Prefab?

    I tested . It has the same behavior. i mean it is not draggable when drag threshold is zero. when i make it non-zero it works. Like the one i made.
    I appreciate you time taking a look at my files.

    I have just sent you two packages. one containing Gamemanagers and the other containing 3 UI prefabs (2xinventories and 1xcrafting) and i attached the dependencies.
    Thanks for yout supportive and educational perspective. <3

  • Thanks for the package - though the version appears to be v1.76.1, not v1.78.4.

    Set your "Inventory interactions" setting to "Single" to allow for a drag-drop interface.

  • edited October 2023

    OOOO thanks for your precious time and help in leting me know how i can pass this obstacle.
    For unity version i just learned that i downloaded it but i have not pushed the impornt button but i thought i have done it. sorry.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.