public static ResourceAuto CreateResourceRequest(string path, bool readable = false) { var item = new ResourceAuto(); item.async = true; item.id = ResourceBase.GetJavaHash(path); item.controlType = ControlType.Show | ControlType.Hide; item.loadableResource = true; item.readableTexture = readable; item.resourcesPath = path; return(item); }
public static ResourceAuto CreateWebRequest(string path, int cacheVersion = 0, bool readable = false) { var item = new ResourceAuto(); item.async = true; item.id = ResourceBase.GetJavaHash(path); item.controlType = ControlType.Show | ControlType.Hide; item.loadableWeb = true; item.cacheVersion = cacheVersion; item.readableTexture = readable; item.webPath = path; return(item); }
public ResourceAuto(ResourceAuto other) : base(other) { this.controlType = other.controlType; }