NormalPainter
NormalPainter copied to clipboard
2021.3.13f1使用的是发布的Normal Pointer出现异常
我将包导入到Unity 2021.3.13f1中,使用的是发布的Normal Pointer最新的。当我再Window中点击NormalPointer时却出现如下错误:
TypeLoadException: Generic Type Definition failed to init, due to: Generic class cannot have explicit layout. assembly:D:\GameWorkSpace\Unity\Porject\Game_Study\Library\ScriptAssemblies\Assembly-CSharp.dll type:Caster member:(null)
UTJ.NormalPainter.PinnedList`1[T]..ctor (UnityEngine.Vector3[] data, System.Boolean clone) (at Assets/UTJ/NormalPainter/Scripts/PinnedArray.cs:227)
UTJ.NormalPainter.NormalPainter.BeginEdit () (at Assets/UTJ/NormalPainter/Scripts/NormalPainter.cs:242)
UTJ.NormalPainter.NormalPainter.set_editing (System.Boolean value) (at Assets/UTJ/NormalPainter/Scripts/NormalPainter.cs:98)
UTJ.NormalPainter.NormalPainterWindow.OnGUI () (at Assets/UTJ/NormalPainter/Editor/NormalPainterWindow.cs:92)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition) (at <dc1a47a5816e4be7bc6817ee4d339e75>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect dockAreaRect) (at <dc1a47a5816e4be7bc6817ee4d339e75>:0)
UnityEditor.DockArea.OldOnGUI () (at <dc1a47a5816e4be7bc6817ee4d339e75>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <0b1cb8f4dac44a9698c79ef2d7b929aa>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <0b1cb8f4dac44a9698c79ef2d7b929aa>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <0b1cb8f4dac44a9698c79ef2d7b929aa>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at <0b1cb8f4dac44a9698c79ef2d7b929aa>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <0b1cb8f4dac44a9698c79ef2d7b929aa>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <0b1cb8f4dac44a9698c79ef2d7b929aa>:0)
UnityEngine.UIElements.IMGUIContainer.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <0b1cb8f4dac44a9698c79ef2d7b929aa>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at <0b1cb8f4dac44a9698c79ef2d7b929aa>:0)
UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <0b1cb8f4dac44a9698c79ef2d7b929aa>:0)
当我不顾警告点击edit Normals时出现如下错误:
TypeLoadException: Failure has occurred while loading a type.
UTJ.NormalPainter.PinnedList`1[T]..ctor (UnityEngine.Vector3[] data, System.Boolean clone) (at Assets/UTJ/NormalPainter/Scripts/PinnedArray.cs:227)
UTJ.NormalPainter.NormalPainter.BeginEdit () (at Assets/UTJ/NormalPainter/Scripts/NormalPainter.cs:242)
UTJ.NormalPainter.NormalPainter.set_editing (System.Boolean value) (at Assets/UTJ/NormalPainter/Scripts/NormalPainter.cs:98)
UTJ.NormalPainter.NormalPainterWindow.OnGUI () (at Assets/UTJ/NormalPainter/Editor/NormalPainterWindow.cs:92)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition) (at <dc1a47a5816e4be7bc6817ee4d339e75>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect dockAreaRect) (at <dc1a47a5816e4be7bc6817ee4d339e75>:0)
UnityEditor.DockArea.OldOnGUI () (at <dc1a47a5816e4be7bc6817ee4d339e75>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <0b1cb8f4dac44a9698c79ef2d7b929aa>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <0b1cb8f4dac44a9698c79ef2d7b929aa>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <0b1cb8f4dac44a9698c79ef2d7b929aa>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at <0b1cb8f4dac44a9698c79ef2d7b929aa>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <0b1cb8f4dac44a9698c79ef2d7b929aa>:0)