Category Archives: Unity

RiderでCannot Resolve Symbol

RiderがUnityEngineの参照に失敗すると、UnityEditorでエラーにならなくても`Cannot Resolve Symbol` エラーだらけになる。 解決方法 Preferences > Externa …

Read more »

symlinkが含まれるUnitySDKを導入する時にGUIDが更新され続ける場合の対処

https://forum.unity.com/threads/unity-changing-guids-absolutely-every-time-you-give-the-editor-window-focus.53 …

Read more »

UnityでInvalid build path エラー

下記のようなエラーログが出力された場合、指定できないディレクトリがあるっぽい。 Downloadsフォルダは指定できるみたい。 Invalid build path: c:/users/(username) UnityE …

Read more »

【Unity】任意のタイミングでメモリ解放をする

下の2行をメモリ解放したい任意のタイミングに追加する。 Updateとか頻繁に呼ばれるところに追加するのはダメ。 System.GC.Collect(); Resources.UnloadUnusedAssets(); …

Read more »

【Unity】スリープを制御する

using UnityEngine; public class Hoge : MonoBehaviour { private void Start() { Screen.sleepTimeout = SleepTimeo …

Read more »