Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は宣言した
public Vector3 floorPosition;
クラスで。開始関数で私が与えた
floorPosition = new Vector3(0.000f,0.500f,-8.250f);
floorPosition でゲームオブジェクトをインスタンス化しようとしました。しかし、オブジェクトは(0.0, 0.5, -8.3) に入ります。自動的にラウンドします。ゲームオブジェクトを正確な位置に配置するために私がしなければならないこと。
前もって感謝します
奇妙なことは、あなたがタイプすると
floorPosition = new Vector3(0.0f,0.5f,-8.250f); transform.position = floorPosition;
インスペクターは、あなたが要求した正確な位置を表示します (したがって、オブジェクトは実際には正しい場所にあると思います) が、Debug.Log() はそれを丸めます。