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.
25 lines
729 B
25 lines
729 B
using UnityEditor;
|
|
using UnityEditor.UIElements;
|
|
using UnityEngine.UIElements;
|
|
|
|
namespace TNodeGraphViewImpl.Editor.GraphBlackboard{
|
|
public class GraphBlackboardPropertyField:PropertyField{
|
|
private readonly bool _runtime;
|
|
|
|
public GraphBlackboardPropertyField(SerializedProperty findPropertyRelative,bool runtime):base(findPropertyRelative){
|
|
_runtime = runtime;
|
|
}
|
|
|
|
protected override void ExecuteDefaultActionAtTarget(EventBase evt)
|
|
{
|
|
|
|
base.ExecuteDefaultActionAtTarget(evt);
|
|
if (this.Q<ObjectField>() != null){
|
|
this.Q<ObjectField>().allowSceneObjects = _runtime;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
} |