LoginSignup
0
0

More than 5 years have passed since last update.

UnityのSpriteEditor上のPosition,PivotとSpriteクラスフィールドの関係

Last updated at Posted at 2014-11-18

備忘録
UnityのSpriteEditor上での値と、Spriteクラスのフィールドから取れる値の変換式です。

SpriteEditor Spriteフィールド
Name name
Position rect
CustomPivot.x -bounds.center.x / bounds.size.x + 0.5f
CustomPivot.y -bounds.center.y / bounds.size.y + 0.5f
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0