Forum rules - please read before posting.

valter

About

Username
valter
Joined
Visits
588
Last Active
Roles
Member

Comments

  • What I want to do is difficult to explain (using Update () +  Coroutine it works fine but I'm trying to figure out if I can directly use the override function as you suggested). To make it simple I would like to do this: 1) I select an inventory i…
  • Thanks Chris, but this is where I get into confusion and I do not understand if and where I'm wrong. What you suggest is the first thing I tried. private bool CustomInputGetMouseButtonDownDelegate (int BtnPressed) { if (KickStarter.runtimeI…
  • Thanks Chris, now I think I understand. So to be clear, if I want to intercept the mouse click of both buttons while an item is selected i will use in CustomInputGetMouseButtonDownDelegate  if (KickStarter.runtimeInventory.SelectedItem != null)…
  • Sorry, OnMenuElementClick custom event, GetItemClick was my function.It seems, however, that I have solved with custom input overrides which we have spoken in another post. Thank you
  • Sorry Chris but I just can not understand how to use the custom input overrides. I have searched everywhere but clear examples I have not found. using System.Collections; using System.Collections.Generic; using UnityEngine; using AC; pub…
  • Yes, I had already tried it without success.if (KickStarter.runtimeInventory.selectedItem != null) did not work but I understand the reason. I'm inside the GetItemClick Custom Event and when I right-click to deselect the item it occurs before read…
  • Hi Chris, it seems that due to the structure of my script the instruction was not executed. With a Coroutine and yield return nullKickStarter.runtimeInventory.GetItem (clickedItem).cursorIcon.texture = null it works Thank you
  • As you suggested me in the other post I will reply you here. The problem is different from what I've described here but it's probably somehow connected (sorry for the duplicate post).If it may be useful to check your new changes I can try the WIP gl…
  • Hi Chris, I would have a question. I have discarded the idea of moving the cursor by simulating the pressure of the keys, it does not seem very reliable. But the need remains. The offset of a new texture as you suggest would not work because I hav…
  • No, it is not selected.
  • If you use Interaction = Context Sensitive one way might be to create an ActionList Use: in the Standard interactions (Inventory -> yourItem). Object -> Send message -> Custom -> yourMethod   In yourMethod a simple check: if …
  • I found the direct way to get the coordinates of the clicked item. Within a custom event: Vector3 slotPos = _element.GetRectTransform (_slot).position; it returns exactly the center of the clicked item in screen coordinates. Now I no lo…
  • Hi Chris, I made a short video to give you the idea of what I want to do. In this video everything works well but the two small menus are source = AC. I would like to use UI menus as the main inventory to avoid having to manually resize them in th…
  • But to summarise, so far as I can tell, the code works when the "hidden" menu's position is Manual, but there's an offset when "On Hotspot".  Is that right? Correct If so, at what point are you calling the code?  Every frame? No, through …
  • I did another experiment, I manually moved a menu to the coordinates that result from the log. The position corresponds to that of the menu, so the two SetCentre and GetSlotCentre functions overlap perfectly. This should mean that the problem aris…
  • I discovered what interfered. My main UI menu needs some layout components that prevented moving the menu.But now I came across a behavior that apparently has no explanation, really too weird for me. For two days I tried in in every way to overlay…
  • Ok Chris, sorry was my mistake. Now I can try to simulate the keystrokes and see if the workaround works.
  • I got a look at menu.cs and for example I saw that SetCentre is also for UI Unity. I checked all the conditions and they are present for my inventory. In my case the routine is limited to: Vector3 targetPositionUI = new Vector3 (_position.x, _po…
  • Sorry I was referring to the WorldSpaceCursorExample script.I use Cursor rendering = Software and Replace Mouse Cursor in Main Cursor Setting. I read that in a post you reply  You can use the keyboard to control the cursor if you set your Input Met…
Default Avatar

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.
Do NOT follow this link or you will be banned from the site!