用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:cursor:cursor

Cursor 光标

class in UnityEngine

Description 描述

Cursor API for setting the cursor that is used for rendering.

用来设置光标的API类。

Supports Hardware Cursors on OSX, Windows and Linux falls back to software cursors on unsupported platforms.

在OSX、Windows和Linux 支持硬件光标,在不支持的平台使用软件光标。

Textures used as cursors should be marked as such in their import settings.

做光标的纹理在导入设置应中赢标记为可读写。

OSX Webplayer note: Due to sandboxing, Hardware Cursors can only be updated intermittently (when the cursor is moving) the best way to ensure correct behavior if to use OnMouseEnter and OnMouseExit to set the hardware cursors. This is not an issue for software cursors.

OSX Webplayer注意,由于沙盒,硬件光标只能断断续续的更新(当光标移动时),使用OnMouseEnter和OnMouseExit设置硬件光标确保正确行为的最佳方式。

Static Variables 静态变量

lockStateHow should the cursor be handled?
应该怎样处理光标?
visibleShould the cursor be visible?
光标是否应可见。

Static Functions 静态函数

SetCursorChange the mouse cursor to the set texture OnMouseEnter.
当鼠标进入OnMouseEnter,设置鼠标光标纹理。
script/unityengine/classes/cursor/cursor.txt · 最后更改: 2016/08/02 05:31 (外部编辑)