diff options
author | chai <chaifix@163.com> | 2021-04-21 21:52:56 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-04-21 21:52:56 +0800 |
commit | 6d0c9a214dc0fda264e8588fa02aaa19b0b2cc5f (patch) | |
tree | 6a853a0b0cfb5818c864c3794cb58075876c07b0 /Assets/ProFlares/Scripts/ProFlareAtlas.cs |
+init
Diffstat (limited to 'Assets/ProFlares/Scripts/ProFlareAtlas.cs')
-rw-r--r-- | Assets/ProFlares/Scripts/ProFlareAtlas.cs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Assets/ProFlares/Scripts/ProFlareAtlas.cs b/Assets/ProFlares/Scripts/ProFlareAtlas.cs new file mode 100644 index 0000000..069b88b --- /dev/null +++ b/Assets/ProFlares/Scripts/ProFlareAtlas.cs @@ -0,0 +1,36 @@ + +/// ProFlares - v1.08- Copyright 2014-2015 All rights reserved - ProFlares.com + + +using UnityEngine; +using System.Collections.Generic; +using System; + +public class ProFlareAtlas : MonoBehaviour { + + [System.Serializable] + public class Element + { + public string name = "Flare Element"; + public Rect UV = new Rect(0f, 0f, 1f, 1f); + public bool Imported; + } + + public Texture2D texture; + + public int elementNumber = 0; + + public bool editElements = false; + + [SerializeField] public List<Element> elementsList = new List<Element>(); + + public string[] elementNameList; + + public void UpdateElementNameList(){ + elementNameList = new string[elementsList.Count]; + + for(int i = 0; i < elementNameList.Length; i++) + elementNameList[i] = elementsList[i].name; + } + +} |