Allows working with non-uniform scale in the editor. More...
#include <EditorNonUniformScaleComponent.h>
Inherits AzToolsFramework::Components::EditorComponentBase, and AZ::NonUniformScaleRequestBus::Handler.
Public Member Functions | |
| AZ_EDITOR_COMPONENT (EditorNonUniformScaleComponent, "{2933FB4F-B3DA-4CD1-8106-F37300730777}", EditorComponentBase) | |
| void | Activate () override |
| void | Deactivate () override |
| AZ::Vector3 | GetScale () const override |
| void | SetScale (const AZ::Vector3 &scale) override |
| void | RegisterScaleChangedEvent (AZ::NonUniformScaleChangedEvent::Handler &handler) override |
Public Member Functions inherited from AzToolsFramework::Components::EditorComponentBase | |
| AZ_RTTI (EditorComponentBase, "{D5346BD4-7F20-444E-B370-327ACD03D4A0}", AZ::Component) | |
| EditorComponentBase () | |
| void | SetDirty () |
| virtual void | Init () override |
| void | OnAfterEntitySet () override final |
| void | SetSerializedIdentifier (AZStd::string serializedIdentifier) override final |
| AZStd::string | GetSerializedIdentifier () const override final |
| AZ::TransformInterface * | GetTransform () const |
| AZ::Transform | GetWorldTM () const |
| AZ::Transform | GetLocalTM () const |
| bool | IsSelected () const |
| void | InvalidatePropertyDisplay (AzToolsFramework::PropertyModificationRefreshLevel refreshFlags) |
| virtual void | SetPrimaryAsset (const AZ::Data::AssetId &) |
| virtual void | AddContextMenuActions (QMenu *) |
Static Public Member Functions | |
| static void | Reflect (AZ::ReflectContext *context) |
Static Public Member Functions inherited from AzToolsFramework::Components::EditorComponentBase | |
| static void | Reflect (AZ::ReflectContext *context) |
Allows working with non-uniform scale in the editor.
|
overridevirtual |
Gets the transform component and selection component of the entity that the component belongs to, if the entity has them. Overrides AZ::Component::Activate().
Important: Components derived from EditorComponentBase must call the Activate() function of the base class.
Reimplemented from AzToolsFramework::Components::EditorComponentBase.
|
overridevirtual |
Sets the component's pointers to the transform component and selection component to null. Overrides AZ::Component::Deactivate().
Important: Components derived from EditorComponentBase must call the Deactivate() function of the base class.
Reimplemented from AzToolsFramework::Components::EditorComponentBase.