コード例 #1
0
 public TextureAsset(string name, string path, Texture2D texture, EAssetOrigin origin)
 {
     Name    = name;
     Path    = path;
     Texture = texture;
     Origin  = origin;
 }
コード例 #2
0
        public TextureAsset(string name, string path, Texture2D texture, EAssetOrigin origin)
        {
            Name    = name;
            Path    = path;
            Texture = texture;

            if (name.ToLower().Contains("_clamp"))
            {
                Texture.wrapMode = TextureWrapMode.Clamp;
            }

            Origin = origin;
        }
コード例 #3
0
 // Token: 0x06001946 RID: 6470 RVA: 0x0008D32C File Offset: 0x0008B72C
 public ScannedFileInfo(string name, string assetPath, string dataPath, string bundlePath, bool dataUsePath, bool bundleUsePath, bool loadFromResources, bool canUse, AssetDirectory directory, EAssetOrigin origin, bool overrideExistingIDs)
 {
     this.name                = name;
     this.assetPath           = assetPath;
     this.dataPath            = dataPath;
     this.bundlePath          = bundlePath;
     this.dataUsePath         = dataUsePath;
     this.bundleUsePath       = bundleUsePath;
     this.loadFromResources   = loadFromResources;
     this.canUse              = canUse;
     this.directory           = directory;
     this.origin              = origin;
     this.overrideExistingIDs = overrideExistingIDs;
 }
コード例 #4
0
 public ScannedFileInfo(string name, string assetPath, string dataPath, string bundlePath, bool dataUsePath, bool bundleUsePath, bool loadFromResources, AssetDirectory directory, EAssetOrigin origin)
 {
     this.name              = name;
     this.assetPath         = assetPath;
     this.dataPath          = dataPath;
     this.bundlePath        = bundlePath;
     this.dataUsePath       = dataUsePath;
     this.bundleUsePath     = bundleUsePath;
     this.loadFromResources = loadFromResources;
     this.directory         = directory;
     this.origin            = origin;
 }