mirror of
https://github.com/BlackMATov/unity-flash-tools.git
synced 2026-04-19 10:24:26 +07:00
33 lines
748 B
C#
33 lines
748 B
C#
using UnityEngine;
|
|
using FlashTools.Internal;
|
|
using System.Collections.Generic;
|
|
|
|
namespace FlashTools {
|
|
public class SwfClipAsset : ScriptableObject {
|
|
[System.Serializable]
|
|
public class Frame {
|
|
public Mesh Mesh = new Mesh();
|
|
public Material[] Materials = new Material[0];
|
|
}
|
|
[System.Serializable]
|
|
public class Sequence {
|
|
public string Name = string.Empty;
|
|
public List<Frame> Frames = new List<Frame>();
|
|
}
|
|
|
|
[SwfReadOnly]
|
|
public Texture2D Atlas;
|
|
[SwfReadOnly]
|
|
public float FrameRate;
|
|
[HideInInspector]
|
|
public List<Sequence> Sequences;
|
|
|
|
#if UNITY_EDITOR
|
|
void Reset() {
|
|
Atlas = null;
|
|
FrameRate = 1.0f;
|
|
Sequences = new List<Sequence>();
|
|
}
|
|
#endif
|
|
}
|
|
} |