xincger / unitytoolchainstrick Goto Github PK
View Code? Open in Web Editor NEW提供一些UnityEditor工具链开发的常用小技巧与示例(Provides some common tips and examples for developing the UnityEditor toolchain)
License: MIT License
提供一些UnityEditor工具链开发的常用小技巧与示例(Provides some common tips and examples for developing the UnityEditor toolchain)
License: MIT License
提供一个代码转义工具,用于高亮代码块组件识别
为了支持预览EditorWindow无法绘制的相关内容
19.特效快速预览
这边做了处理(ParticleSystemGameObjectEditor 160 行),但是在 Unity 2020.3.10f1 版本中,依然是不能拖拽到SceneView.
报错信息如下
ArgumentException: method argument length mismatch
System.Delegate.CreateDelegate (System.Type type, System.Object firstArgument, System.Reflection.MethodInfo method, System.Boolean throwOnBindFailure, System.Boolean allowClosed) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Delegate.CreateDelegate (System.Type type, System.Object firstArgument, System.Reflection.MethodInfo method) (at <695d1cc93cca45069c528c15c9fdd749>:0)
UnityEditor.EditorWrapper.Init (UnityEngine.Object obj, UnityEditor.EditorFeatures requirements) (at :0)
UnityEditor.EditorWrapper.Make (UnityEngine.Object obj, UnityEditor.EditorFeatures requirements) (at :0)
UnityEditor.EditorCache.get_Item (UnityEngine.Object o) (at :0)
UnityEditor.SceneView.CallEditorDragFunctions (System.Collections.Generic.IList`1[T] dragAndDropObjects) (at :0)
UnityEditor.SceneView.HandleDragging () (at :0)
UnityEditor.SceneView.OnGUI () (at :0)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at :0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at :0)
UnityEditor.DockArea.OldOnGUI () (at :0)
希望可以寻求一些帮助,感谢。
特效预览 如果我点击进入Prefab
之后再运行游戏 第一次运行出现
SerializedObjectNotCreatableException: Object at index 0 is null
UnityEditor.Editor.CreateSerializedObject () (at <13645689d8a341ecb7d4d455baae14a2>:0)
UnityEditor.Editor.GetSerializedObjectInternal () (at <13645689d8a341ecb7d4d455baae14a2>:0)
UnityEditor.Editor.get_serializedObject () (at <13645689d8a341ecb7d4d455baae14a2>:0)
UnityEditor.GameObjectInspector.OnEnable () (at <13645689d8a341ecb7d4d455baae14a2>:0)
第二次运行
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.GameObjectInspector.ClearPreviewCache () (at <13645689d8a341ecb7d4d455baae14a2>:0)
UnityEditor.GameObjectInspector.OnDisable () (at <13645689d8a341ecb7d4d455baae14a2>:0)
支持高亮代码块
if (printStr.Contains("//")) //说明是注释
continue;
上面那个语句有个疑问,如果是这种情况,是否就查找不出来了:
m_label.text = "永远的神";// 标题
代码转高亮Code字符串工具,需要将正常代码转换成带转义符,换行符,缩进符的string
支持从OverViewEditorWindow填入相应参数自动生成Example代码
借鉴Odin Overview的样式
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.