Class AIBehaviour
Inheritance
Object
Component
Behaviour
MonoBehaviour
AIBehaviour
Inherited Members
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.destroyCancellationToken
MonoBehaviour.useGUILayout
MonoBehaviour.didStart
MonoBehaviour.didAwake
MonoBehaviour.runInEditMode
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Component.GetComponentIndex()
Component.CompareTag(TagHandle)
Component.transform
Component.transformHandle
Component.gameObject
Component.tag
Object.GetEntityId()
Object.GetInstanceID()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Scene)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Object.ToString()
Object.name
Object.hideFlags
Namespace: Glitch9.AIDevKit
Assembly: Glitch9.AIDevKit.Agent.dll
Syntax
public abstract class AIBehaviour : MonoBehaviour, IErrorEventListener, IUsageEventListener, IUniTaskQueueEventListener
Fields
| Edit this page View Sourcem_IsInitialized
Declaration
protected bool m_IsInitialized
Field Value
| Type | Description |
|---|---|
| bool |
m_IsTerminating
Declaration
protected bool m_IsTerminating
Field Value
| Type | Description |
|---|---|
| bool |
onError
Declaration
[FormerlySerializedAs("onErrorOccured")]
public UnityEvent<Exception> onError
Field Value
| Type | Description |
|---|---|
| UnityEvent<Exception> |
onUsageReceived
Declaration
[FormerlySerializedAs("onReceiveUsage")]
public UnityEvent<Usage> onUsageReceived
Field Value
| Type | Description |
|---|---|
| UnityEvent<Usage> |
Properties
| Edit this page View SourceApi
Selected AI model's provider API.
Declaration
public abstract Api Api { get; }
Property Value
| Type | Description |
|---|---|
| Api |
IsProcessing
Declaration
public bool IsProcessing { get; }
Property Value
| Type | Description |
|---|---|
| bool |
LogLevel
Declaration
public TraceLevel LogLevel { get; }
Property Value
| Type | Description |
|---|---|
| TraceLevel |
Logger
Declaration
protected Logger Logger { get; }
Property Value
| Type | Description |
|---|---|
| Logger |
Methods
| Edit this page View SourceAwake()
Declaration
protected virtual void Awake()
CancelAllRequests()
Declaration
public void CancelAllRequests()
CancelLastRequest()
Declaration
public void CancelLastRequest()
Enqueue(Func<UniTask>)
Declaration
protected void Enqueue(Func<UniTask> taskFactory)
Parameters
| Type | Name | Description |
|---|---|---|
| Func<UniTask> | taskFactory |
InitializeAsync()
Initialize the component asynchronously. This method must be called before using the component.
Declaration
public abstract UniTask InitializeAsync()
Returns
| Type | Description |
|---|---|
| UniTask |
OnDestroy()
Declaration
protected virtual void OnDestroy()
OnError(Exception)
Declaration
public virtual void OnError(Exception e)
Parameters
| Type | Name | Description |
|---|---|---|
| Exception | e |
OnErrorEvent(Event<Exception>)
Declaration
public void OnErrorEvent(Event<Exception> e)
Parameters
| Type | Name | Description |
|---|---|---|
| Event<Exception> | e |
OnQueueCanceled()
Declaration
public virtual void OnQueueCanceled()
OnQueueCompleted()
Declaration
public virtual void OnQueueCompleted()
OnQueueError(Exception)
Declaration
public virtual void OnQueueError(Exception e)
Parameters
| Type | Name | Description |
|---|---|---|
| Exception | e |
OnQueueStarted()
Declaration
public virtual void OnQueueStarted()
OnUsageEvent(UsageEvent)
Declaration
public void OnUsageEvent(UsageEvent e)
Parameters
| Type | Name | Description |
|---|---|---|
| UsageEvent | e |
Start()
Declaration
protected virtual void Start()