2023-05-01から1日間の記事一覧
概要 Debug.Log( m_image.sprite.texture.width ); Debug.Log( m_image.sprite.texture.height );
概要 private void LateUpdate() { var x = Mathf.LerpUnclamped( m_minX, m_maxX, m_scrollRect.horizontalNormalizedPosition ); // ... } LateUpdate で ScrollRect.horizontalNormalizedPosition を参照して ゲームオブジェクトの X 座標を設定しようと…
ソースコード using System.Collections.Generic; using DG.Tweening; using Unity.Collections; using UnityEngine; namespace Kogane { /// <summary> /// LineRenderer 型の DOTween 関連の拡張メソッド /// </summary> public static class DOTweenLineRendererExtensionMet…
概要 JetBrains Rider を 2023.1.1 にアップデートしたら フィールド名を変更した時に FormerlySerializedAs が自動で付与されるようになった Preferences を開いて「言語 & フレームワーク > Unity エンジン」の 「シリアル化されたフィールドの名前を変更…