private static bool UpLoadTextureAsyncRequest(ResourcePackageCallBackObj req) { ResNode curr = AllocResNode(req.resInstanceID); bool bigSize = curr.UpLoadClipTime >= (MaxUpLoad_Assets_AsyncRequestClip - 0.0001f); return(UpLoadAsyncRequest <Texture>(req, !bigSize)); }
private static ResourcePackageCallBackObj BuildResourcePackageCallBackObj(ResourcePackage pack, ResNode res, ResConfigData data, System.Action <ResConfigData, ResNode, System.Object> usercallBack, System.Object userdataObj) { ResourcePackageCallBackObj reslut = AllocResourcePackageCallBackObj(res.instanceID, pack.instanceID); reslut.userCallBck = usercallBack; reslut.userDataObj = userdataObj; reslut.configData = data; return(reslut); }
private static ResourcePackageCallBackObj AllocResourcePackageCallBackObj(int instanceID, int PackageID) { ResourcePackageCallBackObj reslut = null; if (!allCreatedResourcePackageCallBackObj.TryGetValue(instanceID, out reslut)) { reslut = new ResourcePackageCallBackObj(); reslut.Clear(); reslut.resInstanceID = instanceID; reslut.packageID = PackageID; allCreatedResourcePackageCallBackObj.Add(instanceID, reslut); } return(reslut); }
private static void AnimationClipPackageCallBack(ResourcePackageCallBackObj req) { EnQueueWaitForUpLoadAssetsAsyncRequestTable(AnimationClipType, req); }
private static bool UpLoadAnimationClipAsyncRequest(ResourcePackageCallBackObj req) { return(UpLoadAsyncRequest <AnimationClip>(req)); }
private static void FBXPackageCallBack(ResourcePackageCallBackObj req) { EnQueueWaitForUpLoadAssetsAsyncRequestTable(FBXType, req); }
private static bool UpLoadFBXAsyncRequest(ResourcePackageCallBackObj req) { return(UpLoadAsyncRequest <FBXAssets>(req)); }
private static bool UpLoadPrefabAsyncRequest(ResourcePackageCallBackObj req) { return(UpLoadAsyncRequest <GameObject>(req, true)); }
private static bool UpLoadAnimatorControllerAsyncRequest(ResourcePackageCallBackObj req) { return(UpLoadAsyncRequest <RuntimeAnimatorController>(req, true)); }
private static bool UpLoadMaterialAsyncRequest(ResourcePackageCallBackObj req) { return(UpLoadAsyncRequest <Material>(req, true)); }
public void AddAsyncCallBackData(System.Action <ResourcePackageCallBackObj> resourceCallBack, ResourcePackageCallBackObj dataObj) { m_resourcePackageCallBackList.Add(resourceCallBack); m_callBackDataList.Add(dataObj); }
private static bool UpLoadSpriteAsyncRequest(ResourcePackageCallBackObj req) { return(UpLoadAsyncRequest <Sprite>(req)); }