添加bool3,在inspecter中展示为横着的三个勾选框,但是保存为一个整数(๑•̀ㅂ•́)و✧

This commit is contained in:
2023-11-25 15:58:36 +08:00
parent 7cbe59ca14
commit f67b26667b
17 changed files with 494 additions and 20 deletions
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 44450adff1997d74f8382bb7ecbaa7f0
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
+42
View File
@@ -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:
+11 -3
View File
@@ -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
}