Skip to content

Commit c8b9e46

Browse files
committed
removed Main Camera as source option
for now, not sure what that would mean so it's been removed from the selectable options.
1 parent fbf5738 commit c8b9e46

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

source/Core/FrameRecorder/Inputs/Adam/Editor/AdamBeautySourceEditor.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace UnityEditor.FrameRecorder.Input
77
[CustomEditor(typeof(AdamBeautyInputSettings))]
88
public class AdamBeautySourceEditor : Editor
99
{
10-
static EImageSource m_SupportedSources = EImageSource.GameDisplay | EImageSource.MainCamera /*| EImageSource.RenderTexture*/; // not sure what to do with the RT as source here.
10+
static EImageSource m_SupportedSources = EImageSource.GameDisplay; //| EImageSource.MainCamera | EImageSource.RenderTexture*/; // not sure what to do with the RT as source here.
1111
string[] m_MaskedSourceNames;
1212
SerializedProperty m_Source;
1313
SerializedProperty m_RenderSize;
@@ -33,6 +33,7 @@ protected void OnEnable()
3333

3434
public override void OnInspectorGUI()
3535
{
36+
/*
3637
using (var check = new EditorGUI.ChangeCheckScope())
3738
{
3839
if (m_MaskedSourceNames == null)
@@ -43,6 +44,7 @@ public override void OnInspectorGUI()
4344
if (check.changed)
4445
m_Source.intValue = EnumHelper.GetEnumValueFromMaskedIndex<EImageSource>(index, (int)m_SupportedSources);
4546
}
47+
*/
4648
var inputType = (EImageSource)m_Source.intValue;
4749

4850
if (inputType != EImageSource.RenderTexture)

source/Core/FrameRecorder/Inputs/CBRenderTexture/Editor/CBRenderTextureInputSettingsEditor.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace UnityEditor.FrameRecorder.Input
77
[CustomEditor(typeof(CBRenderTextureInputSettings))]
88
public class CBRenderTextureInputSettingsEditor : Editor
99
{
10-
static EImageSource m_SupportedSources = EImageSource.GameDisplay | EImageSource.MainCamera;
10+
static EImageSource m_SupportedSources = EImageSource.GameDisplay; // | EImageSource.MainCamera;
1111
string[] m_MaskedSourceNames;
1212
SerializedProperty m_Source;
1313
SerializedProperty m_CameraTag;
@@ -28,6 +28,7 @@ protected void OnEnable()
2828

2929
public override void OnInspectorGUI()
3030
{
31+
/* re-enable when more than just Game view is supported
3132
using (var check = new EditorGUI.ChangeCheckScope())
3233
{
3334
if (m_MaskedSourceNames == null)
@@ -38,6 +39,7 @@ public override void OnInspectorGUI()
3839
if (check.changed)
3940
m_Source.intValue = EnumHelper.GetEnumValueFromMaskedIndex<EImageSource>(index, (int)m_SupportedSources);
4041
}
42+
*/
4143

4244
var inputType = (EImageSource)m_Source.intValue;
4345
if ((EImageSource)m_Source.intValue == EImageSource.TaggedCamera)

0 commit comments

Comments
 (0)