【3Dゲームエンジン】Unity 4at GAMEDEV【3Dゲームエンジン】Unity 4 - 暇つぶし2ch■コピペモード□スレを通常表示□オプションモード□このスレッドのURL■項目テキスト800:名前は開発中のものです。 15/08/09 14:23:00.07 /OhH7e0+.net ラムダ式書くと、foreachで回すより明らかに遅いのだけど異常ですか? 801:名前は開発中のものです。 15/08/09 14:43:54.26 8vhmQCx9.net >>800 foreachの中身を別関数にして呼び出せば同じ速度になると思うぞ 802:名前は開発中のものです。 15/08/09 14:59:07.10 /OhH7e0+.net FidAllがやけに遅いと思ったけど、foreachでも別関数なら同じなのかな 803:名前は開発中のものです。 15/08/09 15:05:00.83 8vhmQCx9.net >>802 内部的にはdelegateを渡したのと一緒で渡したLambda式を関数呼び出しするからね 804:名前は開発中のものです。 15/08/09 17:31:16.80 juyi80yV.net テストプレイ中に稀に以下のエラーが発生して止まってしまうのですが、対処出来なくて困っています。 当方Unity5。 エラーの発生箇所がeditorやInspector臭いのですが、特にカスタマイズはしてないです。 せいぜい、OnValidate()でInspectorの変更をオブジェクトに適用させるくらいです。 MissingReferenceException: The object of type 'GameObject' has been destroyed but you are still trying to access it. Your script should either check if it is null or you should not destroy the object. UnityEditor.GameObjectInspector.DoRenderPreview () (at C:/buildslave/unity/build/Editor/Mono/Inspector/GameObjectInspector.cs:680) UnityEditor.GameObjectInspector.OnPreviewGUI (Rect r, UnityEngine.GUIStyle background) (at C:/buildslave/unity/build/Editor/Mono/Inspector/GameObjectInspector.cs:745) UnityEditor.Editor.OnInteractivePreviewGUI (Rect r, UnityEngine.GUIStyle background) (at C:/buildslave/unity/build/artifacts/generated/common/editor/EditorBindings.gen.cs:309) UnityEditor.ObjectPreview.DrawPreview (IPreviewable defaultPreview, Rect previewArea, UnityEngine.Object[] targets) (at C:/buildslave/unity/build/Editor/Mono/Inspector/Editor.cs:225) UnityEditor.Editor.DrawPreview (Rect previewArea) (at C:/buildslave/unity/build/Editor/Mono/Inspector/Editor.cs:522) UnityEditor.InspectorWindow.DrawPreviewAndLabels () (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:759) UnityEditor.InspectorWindow.OnGUI () (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:386) System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222) 稀にしか発生せず結構お手上げ状態です。 よろしくお願いします。 次ページ最新レス表示レスジャンプ類似スレ一覧スレッドの検索話題のニュースおまかせリストオプションしおりを挟むスレッドに書込スレッドの一覧暇つぶし2ch