Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

And I see mouse pointer on web version, you add code to disable windows pointer? Or just like:

    public Texture2D cursorTexture, cursorTextureSelect;
    public Vector2 hotSpot = Vector2.zero;
    void Start()
    {
        if (cursorTexture != null)
        {
            Cursor.SetCursor(cursorTexture, hotSpot, CursorMode.Auto);
        }
    }
(1 edit)

I tried this does not work in the web version

(1 edit) (+1)

You tried with Vector2.zero; at Cursor.SetCursor()? Because I send you code from my game and it works for me. Unity 6 btw

Maybe it's not working in my version

(+1)

What version do you have?

Unity 2022.3.10f1

(+1)

TextureType on texture2d as cursor? 

(+1)

Oh, I found the problem, thanks