Archived
添加bool3,在inspecter中展示为横着的三个勾选框,但是保存为一个整数(๑•̀ㅂ•́)و✧
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 44450adff1997d74f8382bb7ecbaa7f0
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,42 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEditor;
|
||||
using UnityEditor.Callbacks;
|
||||
|
||||
using UnityEngine;
|
||||
|
||||
namespace XericLibrary.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// ²å¼þ³õʼ»¯
|
||||
/// </summary>
|
||||
[InitializeOnLoad]
|
||||
public class InitializedXeric
|
||||
{
|
||||
static InitializedXeric()
|
||||
{
|
||||
//Debug.Log("Editor is loaded. Initializing...");
|
||||
}
|
||||
|
||||
[InitializeOnLoadMethod]
|
||||
static void MyMethod()
|
||||
{
|
||||
//Debug.Log("InitializeOnLoadMethod is called.");
|
||||
}
|
||||
|
||||
[PostProcessScene]
|
||||
public static void OnPostProcessScene()
|
||||
{
|
||||
Debug.Log("OnPostProcessScene is called.");
|
||||
}
|
||||
}
|
||||
|
||||
[DidReloadScripts]
|
||||
public class MyScript
|
||||
{
|
||||
static void OnScriptsReloaded()
|
||||
{
|
||||
Debug.Log("OnScriptsReloaded is called.");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 90ef394b99d429642aee067ce4d220b4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,10 +1,18 @@
|
||||
{
|
||||
"name": "Lrss3.XericLibrary.Editor",
|
||||
"rootNamespace": "XericLibrary.Editor",
|
||||
"references": [
|
||||
"Lrss3.XericLibrary"
|
||||
"Lrss3.XericLibrary"
|
||||
],
|
||||
"includePlatforms": [
|
||||
"Editor"
|
||||
],
|
||||
"excludePlatforms": []
|
||||
}
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [],
|
||||
"versionDefines": [],
|
||||
"noEngineReferences": false
|
||||
}
|
||||
Reference in New Issue
Block a user