Minor tweaks
This commit is contained in:
@@ -177,6 +177,7 @@ namespace FlaxEditor.Windows.Assets
|
||||
_toolstrip.AddSeparator();
|
||||
_toolstrip.AddButton(Editor.Icons.Search64, Editor.ContentFinding.ShowSearch).LinkTooltip("Open content search tool (Ctrl+F)");
|
||||
_toolstrip.AddButton(editor.Icons.CenterView64, _surface.ShowWholeGraph).LinkTooltip("Show whole graph");
|
||||
_toolstrip.AddButton(editor.Icons.Docs64, () => Platform.OpenUrl(Utilities.Constants.DocsUrl + "manual/scripting/ai/behavior-trees/index.html")).LinkTooltip("See documentation to learn more");
|
||||
|
||||
// Debug behavior picker
|
||||
var behaviorPickerContainer = new ContainerControl();
|
||||
@@ -301,6 +302,7 @@ namespace FlaxEditor.Windows.Assets
|
||||
if (blackboardType)
|
||||
{
|
||||
var blackboardInstance = blackboardType.CreateInstance();
|
||||
Utilities.Utils.InitDefaultValues(blackboardInstance);
|
||||
_knowledgePropertiesEditor.ReadOnly = true;
|
||||
_knowledgePropertiesEditor.Select(blackboardInstance);
|
||||
}
|
||||
|
||||
@@ -71,7 +71,6 @@ void BehaviorService::Dispose()
|
||||
Behavior::Behavior(const SpawnParams& params)
|
||||
: Script(params)
|
||||
{
|
||||
_tickLateUpdate = 1; // TODO: run Behavior via Job System (use Engine::UpdateGraph)
|
||||
_knowledge.Behavior = this;
|
||||
Tree.Changed.Bind<Behavior, &Behavior::ResetLogic>(this);
|
||||
}
|
||||
|
||||
@@ -358,7 +358,7 @@ public:
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// Adds cooldown in between node executions.
|
||||
/// Adds cooldown in between node executions. Blocks node execution for a given duration after last run.
|
||||
/// </summary>
|
||||
API_CLASS(Sealed) class FLAXENGINE_API BehaviorTreeCooldownDecorator : public BehaviorTreeDecorator
|
||||
{
|
||||
@@ -403,7 +403,7 @@ API_CLASS(Sealed) class FLAXENGINE_API BehaviorTreeKnowledgeConditionalDecorator
|
||||
API_FIELD(Attributes="EditorOrder(0)")
|
||||
BehaviorKnowledgeSelectorAny ValueA;
|
||||
|
||||
// The second value to use for comparision.
|
||||
// The second value to use for comparision (constant).
|
||||
API_FIELD(Attributes="EditorOrder(10)")
|
||||
float ValueB = 0.0f;
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ public:
|
||||
/// <summary>
|
||||
/// Gets the navmesh runtime object that matches with properties.
|
||||
/// </summary>
|
||||
NavMeshRuntime* GetRuntime(bool createIfMissing = true) const;
|
||||
API_FUNCTION() NavMeshRuntime* GetRuntime(bool createIfMissing = true) const;
|
||||
|
||||
private:
|
||||
void AddTiles();
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace
|
||||
}
|
||||
|
||||
NavMeshRuntime::NavMeshRuntime(const NavMeshProperties& properties)
|
||||
: ScriptingObject(SpawnParams(Guid::Empty, NavMeshRuntime::TypeInitializer))
|
||||
: ScriptingObject(SpawnParams(Guid::New(), NavMeshRuntime::TypeInitializer))
|
||||
, Properties(properties)
|
||||
{
|
||||
_navMesh = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user