19 строки
705 B
C#
19 строки
705 B
C#
using UnityEditor;
|
|
using UnityEditor.UIElements;
|
|
using UnityEngine.UIElements;
|
|
|
|
namespace Unity.RenderStreaming.Editor
|
|
{
|
|
[CustomEditor(typeof(RenderStreamingSettings))]
|
|
internal class RenderStreamingSettingsEditor : UnityEditor.Editor
|
|
{
|
|
public override VisualElement CreateInspectorGUI()
|
|
{
|
|
var root = new VisualElement();
|
|
root.Add(new PropertyField(serializedObject.FindProperty(RenderStreamingSettings.AutomaticStreamingPropertyName), "Automatic Streaming"));
|
|
root.Add(new PropertyField(serializedObject.FindProperty(RenderStreamingSettings.SignalingSettingsPropertyName), "Signaling Settings"));
|
|
return root;
|
|
}
|
|
}
|
|
}
|