Forum rules - please read before posting.

Hotspot flicker

I added AC to an existing project and the hotspot flickers when the player approaches it.
(video: https://drive.google.com/file/d/1tv2xTwO-SJ-jwaLq1R6HkSqqSjDBCr7I/view?usp=sharing)
I noticed that the gameobject's layer also changes when flickering.
Maybe this can be a clue.

I deleted everything unnecessary from the project, only AC Demo remains, but the flickering is still there. I can provide the project, it is already uploaded to the cloud.

If I create a new project, everything works fine, but I need to figure out how to solve the problem in an existing project.

I understand that the problem is clearly not in AC, but I can't figure out how to track what exactly affects the flicker.

Any suggestions?

I'm using:

  • Win 10
  • Unity 2022.3.22f1
  • AC 1.82.3

Comments

  • Welcome to the comunity, @Morris.

    Hotspots can optionally be set to change their layer, based on whether they are within the Player's vicinity or not. While I can't recreate the specific flickering behaviour you're experiencing, this layer change will occur if Place distant Hotspots on separate layer? is checked in the Settings Manager's "Hotspots" panel.

    Disabling this option may be enough, but if there are knock-on effects or the underlying issue remains, share screenshots of your Settings Manager, and let me know of any changes (if made) to your Player prefab.

  • Thanks for the quick response, @ChrisIceBox!

    "Place distant Hotspots on separate layer?" was indeed enabled, but disabling it causes the hotspots to disappear completely.

    Here is a screenshot of the settings
    https://drive.google.com/file/d/163eriImf6SINSmFG7PgqVc91OPxv7FmH/view?usp=sharing

    Here is the settings manager file
    https://drive.google.com/file/d/1jHEGLVWg8kFA6i0V63z1ZxVCeDCOMN7_/view?usp=sharing

  • Thanks for the details.

    I can't reproduce the issue on my end with your Manager, however - with or without the option checked.

    After unchecking it, what layer are Hotspots on? They'll need to be on the Default layer to be interactive.

    As it sounds like this issue is specific to the project: have you made any changes to its Layers settings?

  • edited February 5

    I found the cause of the problem.

    In the menu "Edit -> Project Settings -> Physics 2D -> Layer Collision Matrix" the 'Default' layer intersection with 'Ignore Raycast' was unchecked.

    By selecting the checkbox - the flickering stopped.
    Screenshot: https://drive.google.com/file/d/1oXqbg1rF6az7YbJoXJftlihZ1kH5-S27/view?usp=sharing

    I hope this solution will be useful for someone else.

    @ChrisIceBox thanks for the answers! They pointed me in the right direction

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.