Forum rules - please read before posting.

Item Inventory

Whe we choose an item in niventory and drag outside from the inventory
Is there an event we can detect in order to make ie changing the item size 
I mean using Action

Comments

  • No - it's too specific.  A custom script would be better suited to this.

    You can detect if the mouse is not over a specific menu with the following:

    AC.Menu inventoryMenu = AC.PlayerMenus.GetMenuWithName ("Inventory");
    if (!inventoryMenu.IsPointInside (AC.KickStarter.GetInvertedMouse ()))
    {
      // Mouse is not over "Inventory"
    }

    And you can change the inventory icon's size (when a cursor) by changing this variable:

    AC.KickStarter.cursorManager.inventoryCursorSize;
  • For That i create a new Gameobject and attach the script?
    Is that script suitable for mobile drag?
  • That's not the full script - just the relevent pieces of AC code you'll need to make use of.  You'll want to place it in a LateUpdate() function, most likely.

    But yes, it'll go on a new GameObject, and should also work for mobile.
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.