2019-03-13から1日間の記事一覧
方法1 using System.Linq; using UnityEngine; ... var list = Resources .FindObjectsOfTypeAll<GameObject>() .Where( c => c.scene.isLoaded ) .Where( c => c.hideFlags == HideFlags.None ) ; こちらの方法の場合、すべてのゲームオブジェクトを取得できますが、 ゲ</gameobject>…
ソースコード using System.Collections.Generic; using System.Text; public static class StringExt { /// <summary> /// 指定されたバイト数で文字列を分割して返します /// </summary> public static IList<string> SplitByMultiByte( this string self, int count ) { var result =</string>…
ソースコード
概要 上記のスクリプトを Unity プロジェクトの「Editor」フォルダに導入することで Scene ビューの左上にズーム率を表示できようになります ズーム率をクリックすると 100% にリセットされます 参考ツイート Using #unity3d to develop 2D content or UI? H…
概要 using UnityEngine; public class Example : MonoBehaviour { private void Awake() { #if ENABLE_IL2CPP Debug.Log( "ENABLE_IL2CPP" ); #endif } } 「ENABLE_IL2CPP」は IL2CPP ビルド時に有効になる #define ディレクティブです
概要 Console ウィンドウを右クリックして 「Open Editor Log」を選択した時に表示される Editor.log で LightmapEditorSettings: switching bake backend from 1 to 0. Unloading 26 Unused Serialized files (Serialized files now loaded: 0) UnloadTime:…
はじめに 「Fruit Ninja in Unity」は Fruit Ninja のような処理を Unity プロジェクトで再現したプロジェクトです GIF 動画