mirror of
https://github.com/BlackMATov/unity-flash-tools.git
synced 2025-12-13 11:39:54 +07:00
Create add component menu item for FlashTools components
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using FTRuntime.Internal;
|
||||
|
||||
namespace FTRuntime {
|
||||
[AddComponentMenu("FlashTools/SwfClipController")]
|
||||
[ExecuteInEditMode, DisallowMultipleComponent]
|
||||
[RequireComponent(typeof(SwfClip))]
|
||||
public class SwfClipController : MonoBehaviour {
|
||||
|
||||
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user