public override void OnInspectorGUI() { m_SerializedCamera.Update(); HDCameraUI.Inspector.Draw(m_SerializedCamera, this); m_SerializedCamera.Apply(); }
static void Drawer_FieldShutterSpeed(HDCameraUI s, SerializedHDCamera p, Editor owner) { float shutterSpeed = 1f / p.shutterSpeed.floatValue; EditorGUI.BeginChangeCheck(); shutterSpeed = EditorGUILayout.FloatField(shutterSpeedContent, shutterSpeed); if (EditorGUI.EndChangeCheck()) { p.shutterSpeed.floatValue = 1f / shutterSpeed; p.Apply(); } }