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); }
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(); } }
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); }