Create add component menu item for FlashTools components

This commit is contained in:
BlackMATov
2020-11-03 23:01:30 +07:00
parent f5c95ce395
commit 04763bec5b
3 changed files with 3 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ using UnityEngine.Rendering;
using FTRuntime.Internal;
namespace FTRuntime {
[AddComponentMenu("FlashTools/SwfClip")]
[ExecuteInEditMode, DisallowMultipleComponent]
[RequireComponent(typeof(MeshFilter), typeof(MeshRenderer), typeof(SortingGroup))]
public class SwfClip : MonoBehaviour {

View File

@@ -2,6 +2,7 @@
using FTRuntime.Internal;
namespace FTRuntime {
[AddComponentMenu("FlashTools/SwfClipController")]
[ExecuteInEditMode, DisallowMultipleComponent]
[RequireComponent(typeof(SwfClip))]
public class SwfClipController : MonoBehaviour {

View File

@@ -3,6 +3,7 @@ using FTRuntime.Internal;
using System.Collections.Generic;
namespace FTRuntime {
[AddComponentMenu("FlashTools/SwfManager")]
[ExecuteInEditMode, DisallowMultipleComponent]
public class SwfManager : MonoBehaviour {
SwfAssocList<SwfClip> _clips = new SwfAssocList<SwfClip>();