python3dgame-developmentursina

How can I remove this pink rectangle on my screen?


While making a ursina game (3d), Everything works fine but for some reason, instead of a dot or diamond, there is a pink quad shape in the middle of the window.

The pink quad moves with me no matter how much I move the camera (please don't blame me though because I just started 3d development.). I've searched online, here, and the closest I found was a pink dot. I've just made some simple code, here is it:

from ursina import *
from ursina.prefabs.first_person_controller import FirstPersonController

app = Ursina()
ground = Entity(model="Plane", position=(0, 0, 0), scale=300, collider='mesh', texture='grass')
player = FirstPersonController(model='cube', position=(0, 4, 0), collider='box', texture='white_cube', color=color.azure, scale=(2, 4, 2))
camera.z = -5
sky = Sky(texture='sky_sunset')
mouse.visible = False
app.run()

Solution

  • The FirstPersonController comes with its own "Cursor" as a crosshair kind of thing. You can change it by doing player.cursor.color or .scale or whatever you need to do with it. You can even change the texture or whatever you need.

    Here is the documentation for the FirstPersonController

    https://www.ursinaengine.org/api_reference.html#FirstPersonController

    Here is the discord if you need any more help

    https://discord.gg/Rh7Xfd98BU