- Namespace
- RedGirafeGames
.Agamotto .Scripts .Runtime .Visualizers - Base Types
-
- MonoBehaviour
- Abstract
Time Visualizer
graph BT
Type-->Base0["AbstractTimeVisualizer"]
click Base0 "/api/RedGirafeGames.Agamotto.Scripts.Runtime.Visualizers/AbstractTimeVisualizer"
Base0-->Base1["MonoBehaviour"]
Type["PathVisualizer"]
class Type type-node
Syntax
[AddComponentMenu("Agamotto/Path Visualizer")]
[RequireComponent(typeof(LineRenderer))]
public class PathVisualizer : AbstractTimeVisualizer
Attributes
Type | Description |
---|---|
AddComponentMenu | |
RequireComponent |
Fields
Name | Constant Value | Summary |
---|---|---|
autoAssignStone |
Inherited from Abstract
|
|
auto |
The visualizer listens to
OnSimulationComplete() UnityEvent to update wen received.
Inherited from Abstract
|
|
auto |
The visualizer listens to
OnTimeLineChange(TimeStone.TimeTickOrigin) UnityEvent to update when received. This
is mostly used to update during a recording
Inherited from Abstract
|
|
dynamic |
Tolerance for
LineRenderer.Simplify calls during PathVisualizer dynamic updates (timeLine change)
This value should be lower than simplifyTolerance because the simplification will be made while
the line is created, therefore the "breaking" point could be simplified while it shouldn't
|
|
lineRenderer |
The LineRenderer displaying the path, each point correspond to a tick in the TimeStone's TimeLine
|
|
logDebug |
Log all messages
Inherited from Abstract
|
|
pointsOffset |
Offset applied to each point, useful to display the line above the ground if the TimeAgent origin is at ground level for example.
|
|
simplifyTolerance |
Tolerance for
LineRenderer.Simplify calls during PathVisualizer update
0 = same line, higher value = better perf and less precision.
See LineRenderer documentation for more details
|
|
stone |
Inherited from Abstract
|
|
timeAgent |
The timeAgent. Should be present on the GameObject and will be automatically populated
Inherited from Abstract
|
|
visualizationEnabled |
Flag to know if the visualization must be visible. It will be set to false if critical data are missing, like the timeAgent or the timeStone for example.
Inherited from Abstract
|
Methods
Name | Value | Summary |
---|---|---|
Add |
void | |
AddStoneListeners |
void |
Add listeners to the TimeStone
Inherited from Abstract
|
Awake |
void |
Inherited from Abstract
|
ClearVisualization |
void | |
OnInitTimeAgentsList |
void |
Callback to TimeStone's event InitTimeAgentsList
Inherited from Abstract
|
OnRecordStart |
void |
Callback to TimeStone's event OnRecordStop
Inherited from Abstract
|
OnRecordStop |
void | |
OnSimulationComplete |
void | |
OnSimulationStart |
void | |
On |
void | |
On |
void |
Callback to TimeAgent's event OnSetDataTick
Can be useful if the visualizer is dependent to the current tick. See OnionSkinVisualizer for example.
Inherited from Abstract
|
OnTimeLineChange |
void | |
OnTimeLineClear |
void | |
RemoveStoneListeners |
void |
Remove listeners from the TimeStone
Inherited from Abstract
|
TryDisableClone |
void | |
UpdateVisualization |
void | |
Update |
void |
Sets flag
visualizationEnabled in case the visualizer misses a critical data to be displayed.
This flag must be used in the Component extending AbstractTimeVisualizer
Inherited from Abstract
|