mirror of
https://github.com/BlackMATov/unity-flash-tools.git
synced 2026-03-22 04:44:08 +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;
|
using FTRuntime.Internal;
|
||||||
|
|
||||||
namespace FTRuntime {
|
namespace FTRuntime {
|
||||||
|
[AddComponentMenu("FlashTools/SwfClip")]
|
||||||
[ExecuteInEditMode, DisallowMultipleComponent]
|
[ExecuteInEditMode, DisallowMultipleComponent]
|
||||||
[RequireComponent(typeof(MeshFilter), typeof(MeshRenderer), typeof(SortingGroup))]
|
[RequireComponent(typeof(MeshFilter), typeof(MeshRenderer), typeof(SortingGroup))]
|
||||||
public class SwfClip : MonoBehaviour {
|
public class SwfClip : MonoBehaviour {
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
using FTRuntime.Internal;
|
using FTRuntime.Internal;
|
||||||
|
|
||||||
namespace FTRuntime {
|
namespace FTRuntime {
|
||||||
|
[AddComponentMenu("FlashTools/SwfClipController")]
|
||||||
[ExecuteInEditMode, DisallowMultipleComponent]
|
[ExecuteInEditMode, DisallowMultipleComponent]
|
||||||
[RequireComponent(typeof(SwfClip))]
|
[RequireComponent(typeof(SwfClip))]
|
||||||
public class SwfClipController : MonoBehaviour {
|
public class SwfClipController : MonoBehaviour {
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ using FTRuntime.Internal;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace FTRuntime {
|
namespace FTRuntime {
|
||||||
|
[AddComponentMenu("FlashTools/SwfManager")]
|
||||||
[ExecuteInEditMode, DisallowMultipleComponent]
|
[ExecuteInEditMode, DisallowMultipleComponent]
|
||||||
public class SwfManager : MonoBehaviour {
|
public class SwfManager : MonoBehaviour {
|
||||||
SwfAssocList<SwfClip> _clips = new SwfAssocList<SwfClip>();
|
SwfAssocList<SwfClip> _clips = new SwfAssocList<SwfClip>();
|
||||||
|
|||||||
Reference in New Issue
Block a user