Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created November 21, 2020 09:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save todorok1/dca53a61cd49fc1141d9217fed500fc9 to your computer and use it in GitHub Desktop.
Save todorok1/dca53a61cd49fc1141d9217fed500fc9 to your computer and use it in GitHub Desktop.
transform.positionを取得して値を変えても反映されない
// transform.positionを取得してみる
Vector3 pos = gameObject.transform.position;
// 値を変えてみる
pos.x += 5.0f;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment