protected void Start() { if (!Application.isEditor || !Application.isPlaying) { return; } PipelineSaver ps = GameObject.FindObjectOfType <PipelineSaver>(); pipelineManager = ps.gameObject.GetComponent <PipelineManager>(); imageCapture = GetComponent <CameraImageCapture>(); imageCapture.shotCamera = GameObject.Find("VRCCam").GetComponent <Camera>(); LoadUploadRetryStateFromCache(); forceNewFileCreation = UnityEditor.EditorPrefs.GetBool("forceNewFileCreation", true); useFileApi = UnityEditor.EditorPrefs.GetBool("useFileApi", false); API.SetOnlineMode(true); string testImage = System.IO.File.ReadAllText("Assets/VRCSDK/Dependencies/VRChat/Editor/ControlPanel/customImage.cfg"); if (testImage != "") { imagePath = testImage; Debug.Log("Image path found! using this for upload."); } }
protected void Start() { if (!Application.isEditor || !Application.isPlaying) { return; } PipelineSaver ps = GameObject.FindObjectOfType <PipelineSaver>(); pipelineManager = ps.gameObject.GetComponent <PipelineManager>(); imageCapture = GetComponent <CameraImageCapture>(); imageCapture.shotCamera = GameObject.Find("VRCCam").GetComponent <Camera>(); LoadUploadRetryStateFromCache(); forceNewFileCreation = UnityEditor.EditorPrefs.GetBool("forceNewFileCreation", true); }
public static void LaunchSceneBlueprintUploader() { //IL_0043: Unknown result type (might be due to invalid IL or missing references) string @string = EditorPrefs.GetString("currentBuildingAssetBundlePath"); if (!string.IsNullOrEmpty(@string)) { EditorApplication.set_isPlaying(true); VRCPipelineManagerEditor.launchedFromSDKPipeline = true; PipelineManager[] array = Object.FindObjectsOfType <PipelineManager>(); if (array.Length > 0) { PipelineManager val = array[0]; PipelineSaver val2 = val.get_gameObject().AddComponent <PipelineSaver>(); val2.contentType = 1; } } CustomDLLMaker.Cleanup(); }
void Start() { if (Application.isEditor && Application.isPlaying) { Application.runInBackground = true; UnityEngine.VR.VRSettings.enabled = false; PipelineSaver ps = GameObject.FindObjectOfType <PipelineSaver>(); pipelineManager = ps.gameObject.GetComponent <PipelineManager>(); imageCapture = GetComponent <CameraImageCapture>(); imageCapture.shotCamera = GameObject.Find("VRCCam").GetComponent <Camera>(); uploadButton.onClick.AddListener(SetupUpload); shouldUpdateImageToggle.onValueChanged.AddListener(ToggleUpdateImage); Login(); SetupUI(); } }
private static void UploadAvatarResource() { //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) if (!string.IsNullOrEmpty(vrcPath)) { int num = 0; if (!string.IsNullOrEmpty(vrcPath) && ValidationHelpers.CheckIfAssetBundleFileTooLarge(2, vrcPath, ref num)) { EditorUtility.DisplayDialog("Could not publish avatar", ValidationHelpers.GetAssetBundleOverSizeLimitMessage(2, num), "Ok"); } else { VRC_AvatarDescriptor component = Selection.get_activeObject().GetComponent <VRC_AvatarDescriptor>(); PipelineSaver val = component.get_gameObject().AddComponent <PipelineSaver>(); val.contentType = 0; EditorApplication.set_isPlaying(true); VRCPipelineManagerEditor.launchedFromSDKPipeline = true; } } }
protected void Start() { if (!Application.isEditor || !Application.isPlaying) { return; } PipelineSaver ps = GameObject.FindObjectOfType <PipelineSaver>(); pipelineManager = ps.gameObject.GetComponent <PipelineManager>(); imageCapture = GetComponent <CameraImageCapture>(); imageCapture.shotCamera = GameObject.Find("VRCCam").GetComponent <Camera>(); LoadUploadRetryStateFromCache(); forceNewFileCreation = UnityEditor.EditorPrefs.GetBool("forceNewFileCreation", true); useFileApi = UnityEditor.EditorPrefs.GetBool("useFileApi", VRC.Core.ApiFile.kDefaultUseFileAPI); API.InitializeDebugLevel(); API.SetOnlineMode(true); }