Forum rules - please read before posting.

Change Hotspot Texture size

Hi!
Is there a way to change the hotspot texture size? It´s too small during the gameplay.
Thanks!

My config:
https://ibb.co/t9ng1PQ

Comments

  • Ah, looks like a field display issue.

    The "Hotspot icon size" field that's showing won't be applied to a World Space icon. The correct field that will affect it isn't showing - likely because your Cursor Rendering field in the Cursor Manager is not set to Software.

    As a temporary workaround, switch to Software rendering to expose the correct "Size" field, then switch back to your old rendering value after adjusting it.

  • Thank you very much, Chris!
    It´s working now!

  • Hi Chris! I have another question regarding this topic, please. My game takes place in the past and the present. How could I change the Hotspot texture between the past and present according to my scenes? Thank you!
  • You'd need to change the field value at runtime through script.

    You can get an API reference to the texture by right-clicking the label - see this tutorial for details.

    In the case of the Hotspot icon texture field, this reference will return the CursorIconBase class which has a ReplaceTexture function you can use to change its texture:

    AC.KickStarter.settingsManager.hotspotIconGraphic.ReplaceTexture (myNewTexture);
    
  • Thanks, Chris!
    I only managed to fix this now and it worked!

    However, I'm having a problem with my Android build: I can interact with the hotspot icon on the screen by touch, but I can't click on the Interaction menu (it's a Unity Prefab menu). No Unity Prefab menu is clickable... I've already selected my Input Method as Touch Screen but it doesn't work... Could you help me, please? Thank you!

  • What are you using for your game's Input handling - Input System or Input Manager - and are you using a custom Event System (i.e one present in the scene file)?

  • Hi, Chris
    I'm using the new Input System and there is no custom Event System. It works on Windows and WebGL.

    Thank you!
  • Is that to say you're using AC's Input System integration template?

    The Event System prefab used for this is assigned at the top of the Menu Manager. If you select this, check the touch-screen settings, and that the touch inputs are assigned to the various UI events to allow input.

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.