コガネブログ

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

2018-05-08から1日間の記事一覧

【Unity】「DXT1 compressed textures are not supported when publishing to iPhone XXXX」

エラー内容 Unity 2017.4.0f1 で iOS ビルドしようとしたら下記のエラーが発生しました DXT1 compressed textures are not supported when publishing to iPhone Packages/com.unity.ads/Editor/Resources/Editor/landscape.jpg Included from scene: UnityE…

【Unity】シーンのオブジェクトにメモを貼り付けることができる「UNotes」紹介

はじめに 「UNotes」を Unity プロジェクトに導入することで シーンのオブジェクトにメモを貼り付けることができるようになります 使い方 メモを貼り付けたいオブジェクトを右クリックして「UNotes>Add Note」を選択します そして、表示されたウィンドウにテ…

【Unity】DOTween で async / await を使用する

ソースコード 使用例 using DG.Tweening; using UnityEngine; public class Example : MonoBehaviour { private async void Start() { var t = transform; await t.DOMove( Random.onUnitSphere, 1 ); // 移動 await t.DORotate( Random.rotation.eulerAngle…

【Unity】コルーチンと async / await を一緒に使用できる「Asyncoroutine」紹介

はじめに 「Asyncoroutine」を Unity プロジェクトに導入することで コルーチンと async / await を一緒に使用できるようになります Coroutine in async/await using Asyncoroutine; using System.Collections; using System.Threading.Tasks; using UnityEn…