-
Notifications
You must be signed in to change notification settings - Fork 436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SubAssetでも中を見れるように、デフォルトで AdvancedMode にする #1168
SubAssetでも中を見れるように、デフォルトで AdvancedMode にする #1168
Conversation
ousttrue
commented
Aug 24, 2021
@@ -23,7 +23,10 @@ public override void OnGUI(MaterialEditor materialEditor, MaterialProperty[] pro | |||
|
|||
using (new LabelScope("Editor Settings")) | |||
{ | |||
var backup = GUI.enabled; | |||
GUI.enabled = true; | |||
PopupEnum<MToon10EditorEditMode>("Edit Mode", props[MToon10Prop.EditorEditMode], materialEditor); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PopupEnum
は MaterialProperty
に対して副作用があるので SubAsset を変更してしまうと思う。
とはいえ、あまり本質的なプロパティではないのでまあ大丈夫か
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dirty flag
や undo
に悪さするかもしれないので、UI の状態を Editor に移動できるか見てみます
に変更しました |
// UI | ||
if (true /* TODO: mToon.IsAdvancedMode */) | ||
{ | ||
yield return (MToon10Prop.EditorEditMode.ToUnityShaderLabName(), 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
拝承