コガネブログ

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

2022-12-23から1日間の記事一覧

【Unity】iOS の Launch Screen に設定した Image が黒く表示される場合

概要 画像の Texture Type を「Editor GUI and Legacy GUI」から 「Sprite (2D and UI)」に変更したら直った

【Unity】iOS の Launch Screen の設定内容が Xcode に反映されない場合

概要 Build Settings で「Symlink Sources」を有効にしているか スクリプトからビルドする時に BuildOptions.SymlinkSources を使用していると Project Settings で設定した iOS の Launch Screen の内容が Xcode に反映されない

【Unity】DOTween で IndexOutOfRangeException: Index was outside the bounds of the array.

概要 using Cysharp.Threading.Tasks; using DG.Tweening; using UnityEngine; public class Example : MonoBehaviour { private Tween m_tween; private async UniTaskVoid Update() { if ( Input.GetMouseButtonDown( 0 ) ) { Debug.Log( "開始" ); m_twee…

【Unity】EventSystem.current.IsPointerOverGameObject が検出したゲームオブジェクトを取得できる StandaloneInputModule

リポジトリ 使用例 using Kogane; using UnityEngine; using UnityEngine.EventSystems; public class Example : MonoBehaviour { [SerializeField] private CustomStandaloneInputModule m_module; private void Update() { if ( EventSystem.current.IsPoi…