You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
667 B
28 lines
667 B
// KlakSpout - Spout realtime video sharing plugin for Unity
|
|
// https://github.com/keijiro/KlakSpout
|
|
using UnityEngine;
|
|
using UnityEditor;
|
|
|
|
namespace Klak.Spout
|
|
{
|
|
[CanEditMultipleObjects]
|
|
[CustomEditor(typeof(SpoutSender))]
|
|
public class SpoutSenderEditor : Editor
|
|
{
|
|
SerializedProperty _clearAlpha;
|
|
|
|
void OnEnable()
|
|
{
|
|
_clearAlpha = serializedObject.FindProperty("_clearAlpha");
|
|
}
|
|
|
|
public override void OnInspectorGUI()
|
|
{
|
|
serializedObject.Update();
|
|
|
|
EditorGUILayout.PropertyField(_clearAlpha);
|
|
|
|
serializedObject.ApplyModifiedProperties();
|
|
}
|
|
}
|
|
}
|
|
|