Connection

Description

A node that represents a relation between two AINodes, depicted by a bezier curve in the editor.

public class InitialPrefabs.DaniAI.Connection
    : ScriptableObject

Properties

Type Name Summary
int ConditionId The id of the attached condition. This value is 0 if the connection type is simple.
ConnectionType ConnectionType The type of connection.
int SourceId The id of the AI node on the left side of the connection.
int TargetId The id of the AI node on the right side of the connection.
AITemplate Template The template that this connection belongs to.
float Weight The maximum weight of the connection. Used to determine how much influence the connection has on the decision if it is a conditional type. Otherwise it is used to determine the order of which the actions will run.