Thanks for the quick reply. I've played with the containers a bit more and you're absolutely right that it was the right tool for the job.
I used item properties and the stat calculator script to check which item is loaded in the slot and then trig…
Yes! Thank you so much for the support!
Full updated script in case anyone else wants to achieve something similar:
using UnityEngine;using UnityEngine.UI;using AC;public class AudioPlayerSlider : MonoBehaviour{ public Slider audioSlider; // Th…
Sorry, I wasn't super clear about the issue (note that I'm not using the slider to control music anymore, but to control audio clips played using the Sound > Play action list).
The slider works fine and the player can click it to "scrub&quo…
Thanks so much. Unfortunately, I'm a bit stuck with my custom scripts (I am not a developer).
This AI-written script does everything right, but I am struggling to make the slider stretch based on the length of the audio clip!
using UnityEngine;usi…
Hi again.
sorry but I still can't work this one out. Here is my full testing setup:
• I am using this script to turn textmesh pro links into hyperlinks.
• The script is placed on a textmesh pro element. The text has link tags around the words CLI…
The script is placed on my Unity UI's TextMesh Pro text.
The text is linked to a Label element in AC.
The menu is set to appear during gameplay.
A Debug.Log statement appears when I click the tag when the menu is set to Overlay, but nothing happe…
After testing a bit more, it seems like there is an issue from the AC side.
I have a test UI menu with a TexMesh PRO link and a button. Both work fine in play mode whether the canvas is overlaid or rendered by AC's Main camera.
But as soon as AC h…
Sorry, I have one more question: why doesn't it work when the UI is set to Screen Space - Camera?
I've tried playing with the UI's Z axis and different settings but it looks like clicks on the tags aren't registered. Clicks on a standard button li…
Amazing, thanks it works great!
If anyone else needs to do something similar, you also need to add:
using UnityEngine.EventSystems;
Make sure your Unity UI is Screen Space - Overlay
And that your Textmesh pro element has Raycast enabled (in extra…
More information on how it works from the Unity side:
https://discussions.unity.com/t/clickable-link-within-a-text/795397/36
https://www.spongehammer.com/link-on-the-ui-using-textmesh-pro-in-unity/
Thanks for the reply. I've worked it out.
The issue wasn't with the Trigger but with the way I had set up the Hotspot.
The Hotspot is single Use interaction.
The Player action was making the character move to the point.
But I had no interaction se…
Oh I see, thanks for the quick reply. It's two separate menus that share the same UI prefab.
I'm not super comfortable with custom events yet but will look into it.
Oh I see - well I've added the custom script to the game engine prefab.
So far so good, and it even works with the offset rect transform anchors.
Thanks again for the dedicated support!
Yessssss!!!! First line fixed it - thanks so much!
Note: still the same issue when the Panel's rect transform anchors aren't in the centre of the panel, but I can work around that.
Thanks again!