paxcc.blogg.se

Game cursor changer
Game cursor changer






I have use real game objects with sprites and colliders, making it look as a UI.

game cursor changer

If overlayRect = newGameRect -> change scene to new scene.Ģ) for complicated UI, e.g. When fire button (green A button in Xbox controller) is pressed, it performs an action depending on when the overlay is. Thanks!įor a game intended for Xbox and PC I tell what I am doing, it might not be the best idea, nor even a good one, but hey, it is working for me.ġ) Simple UI, such as main menu, nothing too complicated, mouse works as usual, and if a controller is detected, then I have an overlay that is moved with the stick of the gamepad from one Rect to another rect. Unity's SetCursor shows up but doesn't get driven by the controller.Īny advice on what to try next would be greatly appreciated.

  • The pointer position is always reporting as large negative numbers.
  • That works briefly then the callback stops getting called.
  • I tried setting up the OnPointerMoved call back and use that position to drive a sprite around the screen.
  • We tried setting the PointerCursor to null ever frame and that works to hide the cursor but then the unity software cursor will initially move but then stop getting position updates.
  • If we don't use the SetCursor to set a customer cursor I don't see a cursor at all in Unity.
  • This makes the system cursor go away until I call Unity's SetCursor and move the joystick then the system cursor reappears. Here is what I have tried and the results We would like to hide the Xbox system cursor completely We would like to drive this cursor with the controller.Ĥ. We have several custom cursors we switch to through out the game using SetCursor.ģ.

    game cursor changer

    We would like to show the Unity software cursor.Ģ.

    game cursor changer

    Here is an outline of what we would like to do:ġ. We are still having issue with this.įirst off this is all on Xbox One running a UWP build. Sorry for the slow response to this thread, we had other games we were working on shipping that took my time away from this project.








    Game cursor changer