KITASENJU DESIGN BLOG

memo, html, javascript, unity

Entries from 2020-07-01 to 1 day

lineRenderer使い方

//リセット _lineRenderer.positionCount=0; //一個ずつ追加 _lineRenderer.positionCount = _lineRenderer.positionCount + 1; _lineRenderer.SetPosition( _lineRenderer.positionCount-1, _searchObj.position + 0.05f * Vector3.up );

ScreenToWorldPoint使い方

zが0だと動かないんで、適当に数字を入れておくのがポイント Vector3 screen_point = Vector3.zero; #if UNITY_EDITOR screen_point = Input.mousePosition; #else if(Input.touchCount >= 1){ Touch touch = Input.GetTouch(0); screen_point = new Vector3…

"FOOTER"