PaintBrushSystemComponent generically manages runtime paint brush sessions for any components that support runtime painting.
More...
#include <PaintBrushSystemComponent.h>
Inherits AZ::Component, and AzFramework::PaintBrushSessionBus::Handler.
|
static void | Reflect (AZ::ReflectContext *context) |
|
|
void | Activate () override |
|
void | Deactivate () override |
|
AZ::Uuid | StartPaintSession (const AZ::EntityId &paintableEntityId) override |
|
void | EndPaintSession (const AZ::Uuid &sessionId) override |
|
void | BeginBrushStroke (const AZ::Uuid &sessionId, const AzFramework::PaintBrushSettings &brushSettings) override |
|
void | EndBrushStroke (const AZ::Uuid &sessionId) override |
|
bool | IsInBrushStroke (const AZ::Uuid &sessionId) const override |
|
void | ResetBrushStrokeTracking (const AZ::Uuid &sessionId) override |
|
void | PaintToLocation (const AZ::Uuid &sessionId, const AZ::Vector3 &brushCenter, const AzFramework::PaintBrushSettings &brushSettings) override |
|
void | SmoothToLocation (const AZ::Uuid &sessionId, const AZ::Vector3 &brushCenter, const AzFramework::PaintBrushSettings &brushSettings) override |
|
PaintBrushSystemComponent generically manages runtime paint brush sessions for any components that support runtime painting.
◆ m_brushSessions
AZStd::unordered_map<AZ::Uuid, AZStd::shared_ptr<AzFramework::PaintBrush> > AzFramework::PaintBrushSystemComponent::m_brushSessions |
|
protected |
Tracks one PaintBrush instance per paint session. These are only used to support the PaintBrushSessionBus. When painting in the Editor, the Editor tracks its own PaintBrush instance that gets used in conjunction with mouse tracking, manipulator drawing, etc. These PaintBrush instances only exist between StartPaintSession and EndPaintSession.
The documentation for this class was generated from the following file:
- Code/Framework/AzFramework/AzFramework/PaintBrush/PaintBrushSystemComponent.h