From 7ff65559777db818348be1c7718799e8acb1128e Mon Sep 17 00:00:00 2001 From: AlvaroHG Date: Wed, 20 Nov 2024 20:21:54 -0800 Subject: [PATCH] Force add renderingmanager --- unity/Assets/Scripts/AgentManager.cs | 5 ++ unity/ProjectSettings/GraphicsSettings.asset | 51 ++++++++++++++++++++ unity/ProjectSettings/ProjectSettings.asset | 4 +- 3 files changed, 58 insertions(+), 2 deletions(-) diff --git a/unity/Assets/Scripts/AgentManager.cs b/unity/Assets/Scripts/AgentManager.cs index 71de28dcb3..b2ed3bceee 100644 --- a/unity/Assets/Scripts/AgentManager.cs +++ b/unity/Assets/Scripts/AgentManager.cs @@ -188,6 +188,10 @@ void Start() { // gets initialized var instance = Manager.Instance; + //Why is Rendering manager not in cloudrendering? + + gameObject.AddComponent(typeof(RenderingManager)); + // Camera camera = this.primaryAgent.gameObject.GetComponentInChildren(); // camera.targetTexture = createRenderTexture(Screen.width, Screen.height); #endif @@ -1043,6 +1047,7 @@ private void addAgent(ServerAction action) { // this.primaryAgent.m_Camera.targetTexture.width, // this.primaryAgent.m_Camera.targetTexture.height // ); + #endif agent.ProcessControlCommand(action.dynamicServerAction); // TODO: instead of calling agent.ProcessControlCommand call diff --git a/unity/ProjectSettings/GraphicsSettings.asset b/unity/ProjectSettings/GraphicsSettings.asset index 4e929035bf..97be60cb83 100644 --- a/unity/ProjectSettings/GraphicsSettings.asset +++ b/unity/ProjectSettings/GraphicsSettings.asset @@ -160,6 +160,57 @@ GraphicsSettings: enableLPPV: 1 useDitherMaskForAlphaBlendedShadows: 1 m_Automatic: 0 + - serializedVersion: 5 + m_BuildTarget: 30 + m_Tier: 0 + m_Settings: + standardShaderQuality: 2 + renderingPath: 1 + hdrMode: 1 + realtimeGICPUUsage: 25 + useReflectionProbeBoxProjection: 1 + useReflectionProbeBlending: 1 + useHDR: 1 + useDetailNormalMap: 1 + useCascadedShadowMaps: 1 + prefer32BitShadowMaps: 0 + enableLPPV: 1 + useDitherMaskForAlphaBlendedShadows: 1 + m_Automatic: 0 + - serializedVersion: 5 + m_BuildTarget: 30 + m_Tier: 1 + m_Settings: + standardShaderQuality: 2 + renderingPath: 3 + hdrMode: 1 + realtimeGICPUUsage: 25 + useReflectionProbeBoxProjection: 1 + useReflectionProbeBlending: 1 + useHDR: 1 + useDetailNormalMap: 1 + useCascadedShadowMaps: 1 + prefer32BitShadowMaps: 0 + enableLPPV: 1 + useDitherMaskForAlphaBlendedShadows: 1 + m_Automatic: 0 + - serializedVersion: 5 + m_BuildTarget: 30 + m_Tier: 2 + m_Settings: + standardShaderQuality: 2 + renderingPath: 3 + hdrMode: 1 + realtimeGICPUUsage: 50 + useReflectionProbeBoxProjection: 1 + useReflectionProbeBlending: 1 + useHDR: 1 + useDetailNormalMap: 1 + useCascadedShadowMaps: 1 + prefer32BitShadowMaps: 0 + enableLPPV: 1 + useDitherMaskForAlphaBlendedShadows: 1 + m_Automatic: 0 m_LightmapStripping: 0 m_FogStripping: 0 m_InstancingStripping: 0 diff --git a/unity/ProjectSettings/ProjectSettings.asset b/unity/ProjectSettings/ProjectSettings.asset index 6a9ed65b4e..afc3e60a18 100644 --- a/unity/ProjectSettings/ProjectSettings.asset +++ b/unity/ProjectSettings/ProjectSettings.asset @@ -644,7 +644,7 @@ PlayerSettings: webGLThreadsSupport: 0 webGLDecompressionFallback: 0 scriptingDefineSymbols: - 1: + 1: UNITY_POST_PROCESSING_STACK_V2 4: CROSS_PLATFORM_INPUT;MOBILE_INPUT;UNITY_POST_PROCESSING_STACK_V2 7: CROSS_PLATFORM_INPUT;MOBILE_INPUT;UNITY_POST_PROCESSING_STACK_V2 13: UNITY_POST_PROCESSING_STACK_V2 @@ -659,7 +659,7 @@ PlayerSettings: 27: UNITY_POST_PROCESSING_STACK_V2 28: UNITY_POST_PROCESSING_STACK_V2 29: UNITY_POST_PROCESSING_STACK_V2 - 30: UNITY_STANDALONE_LINUX_API;UNITY_POST_PROCESSING_STACK_V2 + 30: 32: UNITY_POST_PROCESSING_STACK_V2 33: UNITY_POST_PROCESSING_STACK_V2 additionalCompilerArguments: {}