#include <ReadOnlyEntitySystemComponent.h>
Inherits AZ::Component, AzToolsFramework::ReadOnlyEntityPublicInterface, AzToolsFramework::ReadOnlyEntityQueryInterface, and EditorEntityContextNotificationBus::Handler.
Public Member Functions | |
AZ_COMPONENT (ReadOnlyEntitySystemComponent, "{B32EB03F-D88F-4B3A-9C16-071AF04DA646}") | |
void | Activate () override |
void | Deactivate () override |
bool | IsReadOnly (const AZ::EntityId &entityId) override |
Returns whether the entity id provided is registered as read-only. | |
void | RefreshReadOnlyState (const EntityIdList &entityIds) override |
void | RefreshReadOnlyStateForAllEntities () override |
void | OnPrepareForContextReset () override |
Static Public Member Functions | |
static void | Reflect (AZ::ReflectContext *context) |
static void | GetProvidedServices (AZ::ComponentDescriptor::DependencyArrayType &provided) |
System Component to track read-only entity registration. An entity registered as ReadOnly cannot be altered in the Editor.
|
overridevirtual |
Returns whether the entity id provided is registered as read-only.
Implements AzToolsFramework::ReadOnlyEntityPublicInterface.
|
overridevirtual |
Refreshes the cached read-only status for the entities provided.
entityIds | The entityIds whose read-only state will be queried again. |
Implements AzToolsFramework::ReadOnlyEntityQueryInterface.
|
overridevirtual |
Refreshes the cached read-only status for all entities. Useful when disconnecting a handler at runtime.
Implements AzToolsFramework::ReadOnlyEntityQueryInterface.