Unity3D的WebGL沒有權限操作瀏覽器的鼠標指針(針對UI)(僅針對於Unity5.6.1f1)
//WebGL下不管用
Cursor.SetCursor(Resources.Load<Texture2D>("hand"), Vector2.zero, CursorMode.Auto);
那麼可以在
進入事件中設置 gameContainer 的Cursor的屬性爲pointer
退出事件中設置 gameContainer 的Cursor的屬性爲auto
Unity3D的WebGL沒有權限操作瀏覽器的鼠標指針(針對UI)(僅針對於Unity5.6.1f1)
//WebGL下不管用
Cursor.SetCursor(Resources.Load<Texture2D>("hand"), Vector2.zero, CursorMode.Auto);
那麼可以在
進入事件中設置 gameContainer 的Cursor的屬性爲pointer
退出事件中設置 gameContainer 的Cursor的屬性爲auto
條款24 ----》條款24:若所有參數皆需類型轉換,請爲此採用non-member函數 **
12315 https://www.12315.cn/cuser/ 互聯網信息服務投訴平臺 https://ts.isc.org.cn/#/login