![]() ![]() As far as I could tell, there is no way to get that information out of the scene without setting it to be the active scene and, if I make it the active scene, it can break the networking plugin. The issue isn't changing the value, the issue is that the value isn't available unless the scene is active. I could just write the fog in a script and then apply it at runtime, but that means I can't use the editor functionality. The LightingSettings will help, but that still means I'll need to somehow get the fog value out of each scene so I can then override the fog in the main scene. As such, the technique they used is to have a mainscene that's always active, then spawn networked objects in the main scene then move them to their respective scenes. I poked the devs of the addon and they said there were a variety of reasons it worked that way, but the main one was because when sending objects to spawn on the client, there's a lot of assumptions made about the scene they're in. SerializedProperty property2 = so.FindProperty("m_GISettings.m_EnableBakedLightmaps") Ĭlick to expand.The way additive scenes work in the Mirror Networking addon is that you always have to keep a main scene active, then you load the other scenes additive and move the gameobjects around. SerializedProperty property1 = so.FindProperty("m_GISettings.m_EnableRealtimeLightmaps") SerializedProperty property2 = so.FindProperty("m_GISettings.m_TemporalCoherenceThreshold") SerializedProperty property1 = so.FindProperty("m_GISettings.m_BounceScale") SerializedProperty property5 = so.FindProperty("m_LightmapsMode") SerializedProperty property4 = so.FindProperty("m_LightmapEditorSettings.m_LightmapParameters") SerializedProperty propert圓 = so.FindProperty("m_LightmapEditorSettings.m_TextureWidth") SerializedProperty property2 = so.FindProperty("m_GISettings.m_IndirectOutputScale") SerializedProperty property1 = so.FindProperty("m_GISettings.m_AlbedoBoost") SerializedProperty property8 = so.FindProperty("m_LightmapEditorSettings.m_FinalGatherRa圜ount") SerializedProperty property7 = so.FindProperty("m_LightmapEditorSettings.m_FinalGather") SerializedProperty property6 = so.FindProperty("m_LightmapEditorSettings.m_TextureCompression") SerializedProperty property5 = so.FindProperty("m_LightmapEditorSettings.m_AOMaxDistance") SerializedProperty property4 = so.FindProperty("m_LightmapEditorSettings.m_CompAOExponent") SerializedProperty propert圓 = so.FindProperty("m_LightmapEditorSettings.m_Padding") SerializedProperty property2 = so.FindProperty("m_LightmapEditorSettings.m_BakeResolution") SerializedProperty property1 = so.FindProperty("m_LightmapEditorSettings.m_Resolution") I'm too lazy to write wrappers for them, but here they are: Here are some other lighting properties names. It's great to hear that my script was helpful for someone
0 Comments
Leave a Reply. |