通常のオブジェクトなどはTransformで座標やスケールを管理しますがUI系の座標などはRectTransformが使用されています。 RectTransform使用時にスクリプトを使ってオブジェクト移動などをさせる時はRectTransformを取得して値を変更させれば可能です。 using UnityEngine.UI ...
混乱しますよね。 こんにちは「つけらっとゲームス」プログラム担当のとちです。 もう長らくUnityに触れていますけど、たまーに混乱するので自分のためにも一旦まとめておきますね。っていうお話です。 ってのがありますよね。 「これらが何なのかを ...
Allows you to set the anchor presets in code, with the same results you'd get messing with the Rect Transform's inspector controls. How to use: 1 - Import the test project unity package, at least the ...