예제 #1
0
        // Checks if an imageset with given name exists and returns it if it does.
        // Otherwise, creates a new image set.
        public AssetImageSet OpenImageSet(string name)
        {
            var item = GetExistingItemWithType <AssetImageSet>(name);

            if (item != null)
            {
                return(item);
            }

            var imageset = new AssetImageSet(m_Path, name, authorId);

            m_Items.Add(imageset);
            return(imageset);
        }
예제 #2
0
 public void SetReference(string name)
 {
     m_Imageset       = null;
     m_ReferencedName = name;
 }
예제 #3
0
 internal AssetImageStackLayer(string assetCatalogPath, string name, string authorId) : base(name, authorId)
 {
     m_Path     = Path.Combine(assetCatalogPath, name + ".imagestacklayer");
     m_Imageset = new AssetImageSet(m_Path, "Content", authorId);
 }