Removed too detailed logging
parent
ca99c15757
commit
cfb657ea31
|
@ -18,7 +18,7 @@ public class WallArt : MonoBehaviour
|
|||
void Start()
|
||||
{
|
||||
var randomNumber = Random.Range(10000, 99999);
|
||||
MarcsWebLogger.Log($"{randomNumber}-start");
|
||||
MarcsWebLogger.Log($"{randomNumber}-WallArt_start");
|
||||
|
||||
renderTexture = new RenderTexture(256, 256, 0)
|
||||
{
|
||||
|
@ -30,42 +30,23 @@ public class WallArt : MonoBehaviour
|
|||
useMipMap = false,
|
||||
depthStencilFormat = UnityEngine.Experimental.Rendering.GraphicsFormat.D24_UNorm_S8_UInt,
|
||||
};
|
||||
MarcsWebLogger.Log($"{randomNumber}-1");
|
||||
|
||||
GameObject camera = Instantiate(outsideCameraPrefab, transform.position, Quaternion.identity);
|
||||
MarcsWebLogger.Log($"{randomNumber}-1.1");
|
||||
|
||||
|
||||
outsideCameraInstance = camera.GetComponent<Camera>();
|
||||
MarcsWebLogger.Log($"{randomNumber}-2");
|
||||
|
||||
try
|
||||
{
|
||||
// Attempt to set the target texture
|
||||
outsideCameraInstance.targetTexture = renderTexture;
|
||||
}
|
||||
catch (System.Exception e)
|
||||
{
|
||||
// Handle any exceptions that may occur
|
||||
Debug.LogError("An error occurred: " + e.Message);
|
||||
}
|
||||
MarcsWebLogger.Log($"{randomNumber}-3");
|
||||
// Attempt to set the target texture
|
||||
outsideCameraInstance.targetTexture = renderTexture;
|
||||
|
||||
// Set the initial rotation of the camera
|
||||
outsideCameraInstance.transform.rotation = Quaternion.Euler(
|
||||
Random.Range(0f, 360f),
|
||||
Random.Range(0f, 360f),
|
||||
Random.Range(0f, 360f)
|
||||
);
|
||||
MarcsWebLogger.Log($"{randomNumber}-4");
|
||||
|
||||
material = new Material(Shader.Find("Standard"));
|
||||
MarcsWebLogger.Log($"{randomNumber}-5");
|
||||
|
||||
material.mainTexture = renderTexture;
|
||||
MarcsWebLogger.Log($"{randomNumber}-6");
|
||||
|
||||
meshRenderer.material = material;
|
||||
MarcsWebLogger.Log($"{randomNumber}-7");
|
||||
ovrCameraRig = FindObjectOfType<OVRCameraRig>();
|
||||
|
||||
MarcsWebLogger.Log($"{randomNumber}-WallArt_end");
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
|
|
|
@ -139,8 +139,6 @@ PlayerSettings:
|
|||
bundleVersion: 0.1
|
||||
preloadedAssets:
|
||||
- {fileID: 11400000, guid: 29d72bf9f28086693968cedbdc8f08cd, type: 2}
|
||||
- {fileID: 11400000, guid: 541751c4fa90967d68ef779a22ee43f3, type: 2}
|
||||
- {fileID: -3127938587913570544, guid: 8eb28e39ec717d0799039f01965f0533, type: 2}
|
||||
metroInputSource: 0
|
||||
wsaTransparentSwapchain: 0
|
||||
m_HolographicPauseOnTrackingLoss: 1
|
||||
|
|
Loading…
Reference in New Issue