添加扩展编辑器
将代码放在Editor文件夹下,这个文件夹下的所有脚本在场景运行前会先被预编译,而且不会被打包进去。
编辑器脚本
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor;
public class SpawnManager : EditorWindow { |
将代码放在Editor文件夹下,这个文件夹下的所有脚本在场景运行前会先被预编译,而且不会被打包进去。
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor;
public class SpawnManager : EditorWindow { |