This is the base class for bark trigger components such as BarkOnIdle and BarkTrigger.
More...
|
void | TryBark (Transform target) |
| Barks if the condition is true. More...
|
|
void | TryBark (Transform target, Transform interactor) |
| Barks if the condition is true. More...
|
|
void | ResetBarkHistory () |
| Resets the bark history to the beginning of the list of bark lines. More...
|
|
void | OnRecordPersistentData () |
| Listens for the OnRecordPersistentData message and records the current bark index. More...
|
|
void | OnApplyPersistentData () |
| Listens for the OnApplyPersistentData message and retrieves the current bark index. More...
|
|
void | TryStartConversation (Transform actor) |
| If the condition is true, starts the conversation between the specified actor and the character that this component is attached to. More...
|
|
void | TryStartConversation (Transform actor, Transform interactor) |
| If the condition is true, starts the conversation between the specified actor and the character that this component is attached to. More...
|
|
This is the base class for bark trigger components such as BarkOnIdle and BarkTrigger.
◆ Awake()
virtual void PixelCrushers.DialogueSystem.BarkStarter.Awake |
( |
| ) |
|
|
protectedvirtual |
◆ OnApplyPersistentData()
void PixelCrushers.DialogueSystem.BarkStarter.OnApplyPersistentData |
( |
| ) |
|
Listens for the OnApplyPersistentData message and retrieves the current bark index.
◆ OnDisable()
virtual void PixelCrushers.DialogueSystem.BarkStarter.OnDisable |
( |
| ) |
|
|
protectedvirtual |
◆ OnEnable()
virtual void PixelCrushers.DialogueSystem.BarkStarter.OnEnable |
( |
| ) |
|
|
protectedvirtual |
◆ OnRecordPersistentData()
void PixelCrushers.DialogueSystem.BarkStarter.OnRecordPersistentData |
( |
| ) |
|
Listens for the OnRecordPersistentData message and records the current bark index.
◆ ResetBarkHistory()
void PixelCrushers.DialogueSystem.BarkStarter.ResetBarkHistory |
( |
| ) |
|
Resets the bark history to the beginning of the list of bark lines.
◆ TryBark() [1/2]
void PixelCrushers.DialogueSystem.BarkStarter.TryBark |
( |
Transform |
target | ) |
|
Barks if the condition is true.
- Parameters
-
◆ TryBark() [2/2]
void PixelCrushers.DialogueSystem.BarkStarter.TryBark |
( |
Transform |
target, |
|
|
Transform |
interactor |
|
) |
| |
Barks if the condition is true.
- Parameters
-
target | Target. |
interactor | Interactor to test the condition against. |
◆ allowDuringConversations
bool PixelCrushers.DialogueSystem.BarkStarter.allowDuringConversations = false |
Are barks allowed during conversations?
◆ barkOrder
Specifies the order to run through the list of barks.
- Random: Choose a random bark from the conversation.
- Sequential: Choose the barks in order from first to last, looping at the end.
◆ cacheBarkLines
bool PixelCrushers.DialogueSystem.BarkStarter.cacheBarkLines = false |
If ticked, bark info is cached during the first bark.
This can reduce stutter when barking on slower mobile devices, but barks are not reevaluated each time as the state changes, barks use no em formatting codes, and sequences are not played with barks.
◆ BarkIndex
int PixelCrushers.DialogueSystem.BarkStarter.BarkIndex |
|
getset |
Gets or sets the bark index for sequential barks.
The index of the bark, starting from 0
.
◆ sequencer
Sequencer PixelCrushers.DialogueSystem.BarkStarter.sequencer |
|
get |
Gets the sequencer used by the current bark, if a bark is playing.
If a bark is not playing, this is undefined. To check if a bark is playing, check the bark UI's IsPlaying property.
The sequencer.
The documentation for this class was generated from the following file:
- D:/Documents/Unity Projects/Dialogue System/Dev/Source/Assets/Dialogue System/Scripts/Supplemental/Triggers/Starters/BarkStarter.cs