Vector3 screenPos = new Vector3(Screen.width,0,0);
Vector3 moveWidth=Camera.main.ScreenToWorldPoint(screenPos);
float ballWidth=ball.GetComponent<Renderer>().bounds.extents.x;
maxWidth=moveWidth.x-ballWidth;
紅色的那句是什么意思,本人初學者,請各位老師幫助。
uj5u.com熱心網友回復:
VS IDE中,在不明白的符號上點滑鼠右鍵,選轉到定義。uj5u.com熱心網友回復:
這個是unity的吧uj5u.com熱心網友回復:
請問這個問題解決了嗎?我新人也出現了同樣的問題。uj5u.com熱心網友回復:
是D3D嗎?uj5u.com熱心網友回復:
我的Screen.width的值為883,為什么通過Camera.main.ScreenToWorldPoint(screenPos);轉換后,moveWidth.x的值變成0.3了轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/130084.html
標籤:新手樂園
下一篇:剛下載軟體,想問下學習的文章路線
