Forum rules - please read before posting.

hide/show ac cursor by script

Hi Chris,

Can I hide/show AC cursor by script, thanks for you help

Comments

  • It depends on your Cursor rendering setting.

    This will disable the cursor system, preventing AC from updating/modifying the cursor each frame:

    KickStarter.stateHandler.SetCursorSystem (false);
    

    It won't, however, revert any changes made to it. If you're using Hardware rendering, you'd need to manually set the cursor's visibility afterwards with:

    Cursor.visible = false;
    

    If you're using Unity UI, you can add an animation parameter that hides it, and affect that parameter with e.g.:

    KickStarter.playerCursor.UICursor.GetComponent<Animator> ().SetBool ("Hidden", true);
    
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.