コガネブログ

平日更新を目標に Unity や C#、Visual Studio、ReSharper などのゲーム開発アレコレを書いていきます

【Unity】RectTransform のパラメータを四捨五入するエディタ拡張

ソースコード

使い方

f:id:baba_s:20180314163657p:plain

f:id:baba_s:20180314163706p:plain

UI オブジェクトを複製して配置していると、RectTransform のパラメータが
整数値ではなくなってしまうことがありますが、

f:id:baba_s:20180314163714p:plain

RectTransform を右クリックして「Round」を選択することで

f:id:baba_s:20180314163721p:plain

f:id:baba_s:20180314163728p:plain

RectTransform のパラメータを四捨五入することができます

関連記事