OldBlueWater/BlueWater/Assets/Doozy/Editor/SceneManagement/Nodes/ActivateLoadedScenesNodeEditor.cs
2023-08-02 15:08:03 +09:00

33 lines
1.3 KiB
C#

// Copyright (c) 2015 - 2023 Doozy Entertainment. All Rights Reserved.
// This code can only be used under the standard Unity Asset Store End User License Agreement
// A Copy of the EULA APPENDIX 1 is available at http://unity3d.com/company/legal/as_terms
using System.Collections.Generic;
using Doozy.Editor.EditorUI;
using Doozy.Editor.Nody.Nodes.Internal;
using Doozy.Runtime.SceneManagement.Nodes;
using UnityEditor;
using UnityEngine;
namespace Doozy.Editor.SceneManagement.Nodes
{
[CustomEditor(typeof(ActivateLoadedScenesNode))]
public class ActivateLoadedScenesNodeEditor : FlowNodeEditor
{
public override IEnumerable<Texture2D> nodeIconTextures => EditorSpriteSheets.SceneManagement.Icons.ActivateLoadedScenesNode;
protected override void InitializeEditor()
{
base.InitializeEditor();
componentHeader
.SetComponentNameText(ObjectNames.NicifyVariableName(nameof(ActivateLoadedScenesNode)))
.SetIcon(EditorSpriteSheets.SceneManagement.Icons.ActivateLoadedScenesNode)
.SetAccentColor(EditorColors.SceneManagement.Component)
.AddManualButton()
.AddApiButton()
.AddYouTubeButton()
;
}
}
}