Inheritance: AssetCatalogItemWithVariants
コード例 #1
0
        public AssetDataSet OpenDataSet(string name)
        {
            AssetDataSet existingItemWithType = this.GetExistingItemWithType <AssetDataSet>(name);

            if (existingItemWithType != null)
            {
                return(existingItemWithType);
            }
            AssetDataSet assetDataSet = new AssetDataSet(this.m_Path, name, this.authorId);

            this.m_Items.Add((AssetCatalogItem)assetDataSet);
            return(assetDataSet);
        }
コード例 #2
0
        public AssetDataSet OpenDataSet(string name)
        {
            AssetDataSet existingItemWithType = this.GetExistingItemWithType <AssetDataSet>(name);

            if (existingItemWithType != null)
            {
                return(existingItemWithType);
            }
            AssetDataSet item = new AssetDataSet(base.m_Path, name, base.authorId);

            this.m_Items.Add(item);
            return(item);
        }
コード例 #3
0
        // Checks if a dataset with given name exists and returns it if it does.
        // Otherwise, creates a new data set.
        public AssetDataSet OpenDataSet(string name)
        {
            var item = GetExistingItemWithType <AssetDataSet>(name);

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

            var dataset = new AssetDataSet(m_Path, name, authorId);

            m_Items.Add(dataset);
            return(dataset);
        }