ICode9

精准搜索请尝试: 精确搜索
  • UnityEditor 查找和获取内置资源2022-08-26 12:31:11

    Object[] UnityAssets = AssetDatabase.LoadAllAssetsAtPath("Resources/unity_builtin_extra"); foreach (var asset in UnityAssets) { Debug.Log(asset); } Debug.Log("==================================="); Debug.Log(Shader.Find("Spri

  • UnityEditor 实现如 BoxCollider 的编辑功能2022-02-26 17:00:35

    CastShapeBase.cs 点击查看代码 using System.Collections; using UnityEngine; public abstract class CastShapeBase : MonoBehaviour { #if UNITY_EDITOR protected readonly Color m_gizomsColor = Color.cyan; protected virtual void Reset () { } p

  • Unity在编辑器内添加自定义菜单2021-07-09 16:00:06

    目的:将一些untiy的功能进行简化,节约时间 添加自定义菜单需要用到 UnityEditor.MenuItem 这个api,所以我们需要引用 UnityEditor 这个命名空间 using UnityEditor; 引用命名空间后,可以使用MenuItem进行菜单的添加 [MenuItem("FstWork/功能优化/1.快捷导出UnityPackage %e",false,1

  • ArgumentException: An item with the same key has already been added. Key: UnityEditor.Scripting.Scri2021-04-03 21:03:00

    Unity3D导入SteamVR插件报错: ArgumentException: An item with the same key has already been added. Key: UnityEditor.Scripting.ScriptCompilation.ScriptAssembly System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Col

  • unityEditor 相关2021-03-08 12:32:58

      使用DelayedTextField进行 F2浮动Text修改名字:   if (IsSelected && Event.current.type != EventType.Layout && Event.current.type != EventType.Used && Event.current.keyCode != KeyCode.Backspace

  • Unity引用外部DLL后打包发布需要注意的一些问题2021-01-21 16:00:58

    unity的dll中有用到UnityEditor的处理 错误信息:ArgumentException: The Assembly UnityEditor is referenced by Tool ('Assets/Tools/JSBase/DLL/Tool.dll'). But the dll is not allowed to be included or could not be found. 原因:封装DLL的时候用到了UnityEditor.dll,但是

  • 关于UnityEditor导致系统无法转移焦点的问题2021-01-14 13:33:24

    在制作Unity Editor工具时,调用EditorWindow.GetWindow()这个函数会导致系统焦点锁定至Unity,如果不小心在每帧都调用,就会导致系统的窗体焦点无法切换,无法操作其他软件。 这个问题要注意一下,GetWindow()这个函数谨慎调用。 这里做一个记录……

  • Unity 游戏框架搭建 2019 (四十三) 定时功能2020-05-06 18:03:48

    在上一篇我们完成了 MonoBehaviour 的简化示例,通过做这个示例,强化了一次继承的使用。 而为了让示例脚本自动运行,就接触了 EditorApplication.isPlaying 这个 API,有了这个 API 我们之后所有需要运行 UnityEditor 的脚本都可以按照这种格式去做。 今天我们再接着往下学习。 第

  • mac上unity2017设置Android打包2020-03-07 11:57:00

    1. 下载Android SDK:通过下载Android Studio进行安装,但是下载Android Studio 3.6.1版本后,SDK Manage有变化。Unity打包需要的SDK Tools被Obsolete了,需要把Hide Obsolete Packages的勾选去掉才能看到。        2. 安装SDK Build-Tools 30-rc1之后,/Users/xxx/Library/Android/s

  • UnityEditor使用笔记 -- 自定义Hierarchy面板的右键菜单栏2020-01-22 18:57:43

       基本上每个项目都会有自己的一套基础UI,比如button , panel , render , 或者是做图集优化的Textrue 和 image 采用不用的封装图片组件来分开处理。 这些基础的东西在多人开发的过程中,使用的非常频繁,为了提高开发效率,几乎每个项目都会把这些基础组件做成一个类似Unity自带一样的

  • unity 报错2019-04-13 15:56:09

    NullReferenceException: Object reference not set to an instance of an object UnityEditor.Graphs.Edge.WakeUp () (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Edge.cs:114) UnityEditor.Graphs.Graph.DoWakeUpEdges (System.Collections.Generic.L

  • Unity打Android包报错总结 长期更新2019-03-03 21:48:53

    报错1 Failed to compile resources with the following parameters:-bootclasspath "E:\software\Android\AndroidSDK_ForUnity5\platforms\android-24\android.jar" -d "D:\h5\UnityProjects\IceClimber\Temp\StagingArea\bin\classes" -sou

  • UnityEditor批量替换文件夹下所有问价的后缀名2019-01-25 12:05:06

    using UnityEditor; using UnityEngine; using System.IO; using System.Collections.Generic; public class ReplaceByFileDir : EditorWindow { string filePath; Rect fileRect; string postfixName; string deleteFilePostfixName; string tipMsg

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有