Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions package/Editor/GaussianSplatRendererEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ public class GaussianSplatRendererEditor : UnityEditor.Editor
SerializedProperty m_PropShaderDebugPoints;
SerializedProperty m_PropShaderDebugBoxes;
SerializedProperty m_PropCSSplatUtilities;
SerializedProperty m_PropPrintCulledSplats;
SerializedProperty m_PropDebugCullReadbackEveryNFrames;

bool m_ResourcesExpanded = false;
int m_CameraIndex = 0;
Expand Down Expand Up @@ -75,6 +77,8 @@ public void OnEnable()
m_PropShaderDebugPoints = serializedObject.FindProperty("m_ShaderDebugPoints");
m_PropShaderDebugBoxes = serializedObject.FindProperty("m_ShaderDebugBoxes");
m_PropCSSplatUtilities = serializedObject.FindProperty("m_CSSplatUtilities");
m_PropPrintCulledSplats = serializedObject.FindProperty("m_PrintCulledSplats");
m_PropDebugCullReadbackEveryNFrames = serializedObject.FindProperty("m_DebugCullReadbackEveryNFrames");

s_AllEditors.Add(this);
}
Expand Down Expand Up @@ -118,6 +122,12 @@ public override void OnInspectorGUI()
if (m_PropRenderMode.intValue is (int)GaussianSplatRenderer.RenderMode.DebugPoints or (int)GaussianSplatRenderer.RenderMode.DebugPointIndices)
EditorGUILayout.PropertyField(m_PropPointDisplaySize);

EditorGUILayout.PropertyField(m_PropPrintCulledSplats);
using (new EditorGUI.DisabledScope(!m_PropPrintCulledSplats.boolValue))
{
EditorGUILayout.PropertyField(m_PropDebugCullReadbackEveryNFrames);
}

EditorGUILayout.Space();
m_ResourcesExpanded = EditorGUILayout.Foldout(m_ResourcesExpanded, "Resources", true, EditorStyles.foldoutHeader);
if (m_ResourcesExpanded)
Expand Down
Loading