You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
1.0 KiB
C#
24 lines
1.0 KiB
C#
#if GPU_INSTANCER
|
|
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
namespace GPUInstancer.CrowdAnimations
|
|
{
|
|
[CustomEditor(typeof(GPUICrowdSettings))]
|
|
public class GPUICrowdSettingsEditor : Editor
|
|
{
|
|
public override void OnInspectorGUI()
|
|
{
|
|
EditorGUILayout.BeginVertical(GPUInstancerEditorConstants.Styles.box);
|
|
GUILayout.Space(5);
|
|
GPUInstancerEditorConstants.DrawCustomLabel(GPUICrowdEditorConstants.GPUI_EXTENSION_TITLE, GPUInstancerEditorConstants.Styles.boldLabel);
|
|
EditorGUI.BeginDisabledGroup(true);
|
|
EditorGUILayout.FloatField("Version No", GPUICrowdConstants.gpuiCrowdSettings.extensionVersionNo);
|
|
EditorGUI.EndDisabledGroup();
|
|
GPUICrowdConstants.gpuiCrowdSettings.bakeUpdatePerFrame = EditorGUILayout.Toggle("Update Editor For Animation Baking", GPUICrowdConstants.gpuiCrowdSettings.bakeUpdatePerFrame);
|
|
GUILayout.Space(5);
|
|
EditorGUILayout.EndVertical();
|
|
}
|
|
}
|
|
}
|
|
#endif //GPU_INSTANCER |