当前位置:网站首页>When unity customizes the editor, let the subclass inherit the inspector display effect of the parent class
When unity customizes the editor, let the subclass inherit the inspector display effect of the parent class
2022-07-28 19:00:00 【Unity tool man】
In the official document CustomEditor function
namespace UnityEditor
{
//
// Abstract :
// Tells an Editor class which run-time type it's an editor for.
public class CustomEditor : Attribute
{
//
// Abstract :
// Defines which object type the custom editor class can edit.
//
// Parameters :
// inspectedType:
// Type that this editor can edit.
//
// editorForChildClasses:
// If true, child classes of inspectedType will also show this editor. Defaults
// to false.
public CustomEditor(Type inspectedType);
//
// Abstract :
// Defines which object type the custom editor class can edit.
//
// Parameters :
// inspectedType:
// Type that this editor can edit.
//
// editorForChildClasses:
// If true, child classes of inspectedType will also show this editor. Defaults
// to false.
public CustomEditor(Type inspectedType, bool editorForChildClasses);
//
// Abstract :
// If true, match this editor only if all non-fallback editors do not match. Defaults
// to false.
public bool isFallback {
get; set; }
}
}

CustomEditor There are two , When calling the second function, the second value is true That's all right.
边栏推荐
- Redis advantages and data structure related knowledge
- Introduction and advanced level of MySQL (II)
- Can I get employed after two months of software testing training?
- Kotlin:sealed Class detailed explanation of sealed class
- How much is software testing training generally?
- LeetCode_ 63_ Different paths II
- Overview and working principle of single chip microcomputer crystal oscillator
- Unity 之 切换语言导致报错:System.FormatException:String was not recognized as a valid DateTime.
- GC garbage collector details
- GC垃圾回收器详解
猜你喜欢

112. Use the self-developed proxy server to solve the cross domain access error encountered when uploading files by SAP ui5 fileuploader

MYSQL入门与进阶(三)

微信安装包11年膨胀575倍,UP主:“98%的文件是垃圾”;苹果应用商店被曝大量色情App;四大科技巨头呼吁废除闰秒|极客头条...

Introduction and advanced level of MySQL (6)

C# 之 观察者模式实例 -- 订牛奶

Getting started with gateway

Use the self-developed proxy server to solve the cross domain access errors encountered when uploading files by SAP ui5 fileuploader trial version

1.3 linked list

Introduction and advanced level of MySQL (I)

Cause analysis and solution of video jam after easycvr is connected to the device
随机推荐
Getting started with gateway
11 年膨胀 575 倍,微信为何从“小而美”变成了“大而肥”?
2022 Niuke multi School Game 2 J. link with arithmetic progress (three points + enumeration)
Example of observer mode of C -- ordering milk
广告推荐CTR点击率预测实践项目!
Software testing dry goods
行业落地呈现新进展 | 2022开放原子全球开源峰会OpenAtom OpenHarmony分论坛圆满召开
New upgrade! The 2022 white paper on cloud native architecture was released
How to adjust the brightness of win11? Four methods of adjusting screen brightness in win11
Xiaobai must see the development route of software testing
MySQL date function
How to solve the problem that easycvr device cannot be online again after offline?
What is one hot code? Why use it and when?
C# 之 观察者模式实例 -- 订牛奶
Mongodb database replication table
Open source database innovation in the era of digital economy | the 2022 open atom global open source summit database sub forum was successfully held
If you want to change to it, does it really matter if you don't have a major?
GC垃圾回收器详解
2022年牛客多校第2场 J . Link with Arithmetic Progression (三分+枚举)
redis持久化之RDB和AOF的区别