class MAGES::MeshDeformations::Editor::BasePhysicsActorEditorTool¶
Overview¶
A Tool for editing particles of a BasePhysicsActor. More…
class BasePhysicsActorEditorTool:
public EditorTool,
public IDrawSelectedHandles
{
public:
// structs
struct DistanceEntry;
// properties
OnParticleSelected ParticleSelected;
float ParticleHandleScale;
int ParticleDrawCount;
bool DrawConstraints;
int SelectedParticleCount;
int SelectedParticleIndex;
override GUIContent toolbarIcon;
// events
static event SelectedParticleCountChanged();
// methods
delegate void OnParticleSelected(int particleIndex);
delegate void OnSelectedParticleCountChanged(int selectedParticleCount);
override void OnActivated();
override void OnWillBeDeactivated();
override void OnToolGUI(EditorWindow window);
void OnDrawHandles();
static void SetSelectedParticlesKinematic(bool setKinematic);
};
Detailed Documentation¶
A Tool for editing particles of a BasePhysicsActor.
Properties¶
OnParticleSelected ParticleSelected
Event that is triggered when a particle is selected.
float ParticleHandleScale
Gets or sets the scale of the particle handles in the Scene View.
int ParticleDrawCount
Gets or sets the number of particles to draw in the Scene View.
bool DrawConstraints
Gets or sets a value indicating whether to draw constraints in the Scene View.
int SelectedParticleCount
Gets the number of currently selected particles.
int SelectedParticleIndex
Gets the selected particle index when exactly one particle is selected.
Events¶
static event SelectedParticleCountChanged()
Event that is triggered when the selected particle count changes.
Methods¶
delegate void OnParticleSelected(int particleIndex)
Delegate for handling particle selection events.
Parameters:
particleIndex |
The index of the selected particle. |
delegate void OnSelectedParticleCountChanged(int selectedParticleCount)
Delegate for handling selected particle count changes.
Parameters:
selectedParticleCount |
The current selected particle count. |
static void SetSelectedParticlesKinematic(bool setKinematic)
Sets the current selected particles to kinematic or non-kinematic.
Parameters:
setKinematic |
True to set the current selection kinematic, false otherwise. |