Open 3D Engine (O3DE), the successor to Lumberyard, is now available in Developer Preview. Download O3DE or visit the AWS Game Tech blog to learn more. |
Variables |
|
static const AZ::Crc32 | AddableByUser |
Specifies whether a user can manually add this element to a game in Lumberyard Editor.
More...
|
|
static const AZ::Crc32 | AppearsInAddComponentMenu |
Specifies whether the element appears in the component menu in Lumberyard Editor.
More...
|
|
static const AZ::Crc32 | AutoExpand |
Specifies whether the properties of a class or group should be automatically expanded in Lumberyard Editor.
More...
|
|
static const AZ::Crc32 | ButtonText |
Specifies the text for a button element.
More...
|
|
static const AZ::Crc32 | Category |
Specifies a category for
ClassElements
.
More...
|
|
static const AZ::Crc32 | Visibility |
Specifies visibility settings for an element.
More...
|
|
static const AZ::Crc32 | ContainerCanBeModified |
Specifies that Lumberyard Editor will have controls for adding and removing elements of the container.
More...
|
|
static const AZ::Crc32 | StringList |
Provides strings for a combo box.
More...
|
|
static const AZ::Crc32 | ValueText |
Provides text to display on the right-hand side value area in Lumberyard Editor.
More...
|
|
static const AZ::Crc32 | EnumValues |
Specifies names to present in the UI (for example, in a drop-down menu) and the values that the names correspond to.
More...
|
|
static const AZ::Crc32 | AddNotify |
Specifies a function to execute when something is added to a container.
More...
|
|
static const AZ::Crc32 | ChangeNotify |
Specifies how a property is refreshed in Lumberyard Editor when something changes, and gives you a place to put callbacks that respond to a value changing.
More...
|
|
static const AZ::Crc32 | NameLabelOverride |
Specifies text to override the element's current name.
More...
|
|
static const AZ::Crc32 | DescriptionTextOverride |
Specifies text to override the element's current description.
More...
|
|
static const AZ::Crc32 | PrimaryAssetType |
Associates a given component type with a given asset type.
More...
|
|
static const AZ::Crc32 | Icon |
Specifies an icon to represent the element in Lumberyard Editor.
More...
|
|
static const AZ::Crc32 | ViewportIcon |
Specifies a viewport icon to represent the element in Lumberyard Editor.
More...
|
|
static const AZ::Crc32 | HideIcon |
If true, suppresses any icon from being displayed for this class.
More...
|
|
static const AZ::Crc32 | PreferNoViewportIcon |
Explicitly specifies that the element should not display a viewport icon.
More...
|
|
static const AZ::Crc32 | Min |
Specifies a minimum value for the element.
More...
|
|
static const AZ::Crc32 | Max |
Specifies a maximum value for the element.
More...
|
|
static const AZ::Crc32 | ReadOnly |
Specifies whether the element is read only.
More...
|
|
static const AZ::Crc32 | Step |
Specifies a step value, such as the increments by which a slider increases a value.
More...
|
|
static const AZ::Crc32 | Suffix |
Appends a suffix to the value of the element.
More...
|
|
static const AZ::Crc32 | SoftMin |
Specifies a soft minimum for a slider range.
More...
|
|
static const AZ::Crc32 | SoftMax |
Specifies a soft maximum for a slider range.
More...
|
|
static const AZ::Crc32 | Decimals |
Specifies a decimal precision.
More...
|
|
static const AZ::Crc32 | LabelForX |
Specifies an X-axis label for a multi-dimensional vector.
More...
|
|
static const AZ::Crc32 | LabelForY |
Specifies a Y-axis label for a multi-dimensional vector.
More...
|
|
static const AZ::Crc32 | LabelForZ |
Specifies a Z-axis label for a multi-dimensional vector.
More...
|
|
static const AZ::Crc32 | LabelForW |
Specifies a W-axis label for a multi-dimensional vector.
More...
|
|
static const AZ::Crc32 | StyleForX |
Specifies an X-axis label style for a multi-dimensional vector.
More...
|
|
static const AZ::Crc32 | StyleForY |
Specifies a Y-axis label style for a multi-dimensional vector.
More...
|
|
static const AZ::Crc32 | StyleForZ |
Specifies a Z-axis label style for a multi-dimensional vector.
More...
|
|
static const AZ::Crc32 | StyleForW |
Specifies a W-axis label style for a multi-dimensional vector.
More...
|
|
static const AZ::Crc32 | RequiredService |
Put this on an entity ID (entity reference) to indicate that users can only choose entities with a component that provides this service.
More...
|
|
static const AZ::Crc32 | IncompatibleService |
Put this on an entity ID (entity reference) to indicate that users cannot choose entities that have a component that provides this service.
More...
|
|
static const AZ::Crc32 | ComboBoxEditable |
Allows users to manually type in values that are not presented in a combo box.
More...
|
|
static const AZ::Crc32 | SliceFlags |
Used by slice creation tools.
More...
|
|
Variable Documentation
◆ AddableByUser
|
static |
Specifies whether a user can manually add this element to a game in Lumberyard Editor.
A value of
false
hides the element from views where users create components.
Element type to use this with: AZ::Edit::ClassElements::EditorData , which you reflect using AZ::EditContext::ClassInfo::ClassElement() .
Expected value type:
bool
Default value:
true
Example:
The following example shows how to prevent users from manually adding the
EditorSequenceComponent
to their games.
◆ AddNotify
|
static |
Specifies a function to execute when something is added to a container.
This only executes for add events. For change events, use AZ::Edit::Attributes::ChangeNotify .
Element type to use this with: Any container type that you reflect using AZ::EditContext::ClassInfo::DataElement() .
Expected value type:
A function with signature
void fn()
.
Default value: None
Example:
The following example shows how to set up the
EditorSimpleAnimationComponent
to call a function when an animation layer is added to an entity.
◆ AppearsInAddComponentMenu
|
static |
Specifies whether the element appears in the component menu in Lumberyard Editor.
Expects the
Crc32
of a string that corresponds to the category of the component. The existing categories are
"Game"
and
"System"
.
Use
"Game"
for components that attach to game entities. Use
"System"
for components that attach to the system entity and are effectively singletons. (See
System Components
in the
Lumberyard User Guide
.)
Element type to use this with: AZ::Edit::ClassElements::EditorData , which you reflect using AZ::EditContext::ClassInfo::ClassElement() .
Expected value type:
Crc32
of a string that corresponds to the category of the component (
"Game"
or
"System"
).
Default value: The component does not appear in the component menu.
Example:
The following example shows how to add the
EditorProjectorLightComponent
to the component menu.
◆ AutoExpand
|
static |
Specifies whether the properties of a class or group should be automatically expanded in Lumberyard Editor.
Element type to use this with: AZ::Edit::ClassElements::EditorData or AZ::Edit::ClassElements::Group , which you reflect using AZ::EditContext::ClassInfo::ClassElement() .
Expected value type:
bool
Default value:
false
Example:
The following example shows how to add the
EditorMannequinComponent
to the component menu such that it is expanded when Lumberyard Editor is opened.
◆ ButtonText
|
static |
Specifies the text for a button element.
Element type to use this with: AZ::Edit::UIHandlers::Button , which you reflect using AZ::EditContext::ClassInfo::DataElement() .
Expected value type:
AZStd::string
Default value: None
Example: The following example shows how to add text to a button that generates a cubemap.
◆ Category
|
static |
Specifies a category for ClassElements .
Element type to use this with: AZ::Edit::ClassElements::EditorData , which you reflect using AZ::EditContext::ClassInfo::ClassElement() .
Expected value type:
AZStd::string
Default value:
"Miscellaneous"
Example:
The following example shows how to assign a
BehaviorTreeComponent
to the
AI
category.
◆ ChangeNotify
|
static |
Specifies how a property is refreshed in Lumberyard Editor when something changes, and gives you a place to put callbacks that respond to a value changing.
For example, you could have two related variables in a class, and have a callback that updates one variable when the other variable changes.
Element type to use this with: Any type that you reflect using AZ::EditContext::ClassInfo::DataElement() .
Expected value type:
If you are using this to specify how a property is refreshed, the expected value type is
u32
or
Crc32
(or a function that returns one of these) that corresponds to an
AZ::Edit::PropertyRefreshLevels
value.
If you are using this to put in a callback, the expected value type is a function with one of the following signatures:
u32 fn()
,
Crc32 fn()
, or
void fn()
. If the function returns a value, then that value corresponds to an
AZ::Edit::PropertyRefreshLevels
value.
Default value: AZ::Edit::PropertyRefreshLevels::None
Example:
The following example shows how to set up the
EditorLookAtComponent
to call a function when the target entity changes.
◆ ComboBoxEditable
|
static |
Allows users to manually type in values that are not presented in a combo box.
Element type to use this with: AZ::Edit::UIHandlers::ComboBox , which you reflect using AZ::EditContext::ClassInfo::DataElement() .
Expected value type:
bool
Default value:
false
◆ ContainerCanBeModified
|
static |
Specifies that Lumberyard Editor will have controls for adding and removing elements of the container.
For use with data elements that are containers (vectors, lists, smart pointers, and so on).
Element type to use this with: Any container type that you reflect using AZ::EditContext::ClassInfo::DataElement() .
Expected value type:
bool
Default value:
true
◆ Decimals
|
static |
Specifies a decimal precision.
Element type to use this with: Any numeric type that you reflect using AZ::EditContext::ClassInfo::DataElement() that uses a slider or spinbox.
Expected value type:
int
Default value: 0
◆ DescriptionTextOverride
|
static |
Specifies text to override the element's current description.
For example, this can be a function that gets a description entered by the user.
Element type to use this with: Any type that you reflect using AZ::EditContext::ClassInfo::ClassElement() or AZ::EditContext::ClassInfo::DataElement() .
Expected value type:
AZStd::string
Default value: The default description
Example:
The following example shows how to set up the
EditorLightComponent
to allow users to rename the light description.
◆ EnumValues
|
static |
Specifies names to present in the UI (for example, in a drop-down menu) and the values that the names correspond to.
If the value type is
AZStd::vector<AZStd::pair<
AZ::EntityId
, AZStd::string>>
, this attribute will associate the given entity ID values with a string when the UI presents a combo box.
Element type to use this with: AZ::Edit::UIHandlers::ComboBox , which you reflect using AZ::EditContext::ClassInfo::DataElement() .
Expected value type:
AZStd::vector<AZ::Edit::EnumConstant<ValueType>>
or
AZStd::vector<AZStd::pair<
AZ::EntityId
, AZStd::string>>
Default value: None
◆ HideIcon
|
static |
If true, suppresses any icon from being displayed for this class.
Element type to use this with: AZ::Edit::ClassElements::EditorData , which you reflect using AZ::EditContext::ClassInfo::ClassElement() , of a class that has an icon.
Expected value type:
bool
Default value:
false
Example:
The following example shows how to prevent an icon from being displayed for the
EditorVisibilityComponent
.
◆ Icon
|
static |
Specifies an icon to represent the element in Lumberyard Editor.
Works only with certain classes, AZ::Component being the primary one. The value is a path to the icon.
Element type to use this with: AZ::Edit::ClassElements::EditorData , which you reflect using AZ::EditContext::ClassInfo::ClassElement() , of a class that has an icon.
Expected value type:
AZStd::string
Default value: None
Example:
The following example shows how to specify an icon for the
RagdollComponent
.
◆ IncompatibleService
|
static |
Put this on an entity ID (entity reference) to indicate that users cannot choose entities that have a component that provides this service.
Element type to use this with: An AZ::EntityId that you reflect using AZ::EditContext::ClassInfo::DataElement() .
Expected value type:
Crc32
of a service provided by a component.
◆ LabelForW
|
static |
Specifies a W-axis label for a multi-dimensional vector.
Element type to use this with: Any multi-dimensional vector that you reflect using AZ::EditContext::ClassInfo::DataElement() .
Expected value type:
AZStd::string
Default value: None
◆ LabelForX
|
static |
Specifies an X-axis label for a multi-dimensional vector.
Element type to use this with: Any multi-dimensional vector that you reflect using AZ::EditContext::ClassInfo::DataElement() .
Expected value type:
AZStd::string
Default value: None
◆ LabelForY
|
static |
Specifies a Y-axis label for a multi-dimensional vector.
Element type to use this with: Any multi-dimensional vector that you reflect using AZ::EditContext::ClassInfo::DataElement() .
Expected value type:
AZStd::string
Default value: None
◆ LabelForZ
|
static |
Specifies a Z-axis label for a multi-dimensional vector.
Element type to use this with: Any multi-dimensional vector that you reflect using AZ::EditContext::ClassInfo::DataElement() .
Expected value type:
AZStd::string
Default value: None
◆ Max
|
static |
Specifies a maximum value for the element.
Element type to use this with: Any numeric type that you reflect using AZ::EditContext::ClassInfo::DataElement() .
Expected value type:
The same type as the
DataElement
.
Default value: None
Example:
The following example shows how to set minimum and maximum values for the lens flare FOV angle of the
LensFlareConfiguration
class.
◆ Min
|
static |
Specifies a minimum value for the element.
Element type to use this with: Any numeric type that you reflect using AZ::EditContext::ClassInfo::DataElement() .
Expected value type:
The same type as the
DataElement
.
Default value: None
Example:
The following example shows how to set minimum and maximum values for the particle count scale of the
ParticleEmitterSettings
class.
◆ NameLabelOverride
|
static |
Specifies text to override the element's current name.
For example, this can be a function that gets a name entered by the user.
Element type to use this with: Any type that you reflect using AZ::EditContext::ClassInfo::ClassElement() or AZ::EditContext::ClassInfo::DataElement() .
Expected value type:
AZStd::string
Default value: The default name
Example:
The following example shows how to set up the
EditorLightComponent
to allow users to rename the light type.
◆ PreferNoViewportIcon
|
static |
Explicitly specifies that the element should not display a viewport icon.
Element type to use this with: AZ::Edit::ClassElements::EditorData , which you reflect using AZ::EditContext::ClassInfo::ClassElement() , of a class that has a viewport icon.
Expected value type:
bool
Default value:
false
Example:
The following example shows how to specify that the
EditorSkinnedMeshComponent
should not display a viewport icon.
◆ PrimaryAssetType
|
static |
Associates a given component type with a given asset type.
Only works with components. An example use case is if a user drags a file of this asset type from the Asset Browser to the main window of Lumberyard Editor, then the editor creates an entity with a component of this asset type using the file. For example, dragging a Lua file results in an entity with a Lua script component on it.
Element type to use this with: AZ::Edit::ClassElements::EditorData , which you reflect using AZ::EditContext::ClassInfo::ClassElement() , of a component class.
Expected value type: The UUID of the type of asset that the element represents
Default value: None
Example:
The following example shows how to associate the
EditorDecalComponent
with the asset type
LmbrCentral::MaterialAsset
.
◆ ReadOnly
|
static |
Specifies whether the element is read only.
Element type to use this with: Any type that you reflect using AZ::EditContext::ClassInfo::DataElement() .
Expected value type:
bool
Default value:
false
Example:
The following example shows how to bind the
ReadOnly
attribute of the
EditorLightComponent
to a function that returns a boolean value.
◆ RequiredService
|
static |
Put this on an entity ID (entity reference) to indicate that users can only choose entities with a component that provides this service.
Element type to use this with: An AZ::EntityId that you reflect using AZ::EditContext::ClassInfo::DataElement() .
Expected value type:
Crc32
of a service provided by a component.
Default value: None
Example: The following example shows how to limit the constraint target to entities that provide the physics service.
◆ SliceFlags
|
static |
Used by slice creation tools.
For available settings, see AZ::Edit::SliceFlags .
Element type to use this with: AZ::Edit::ClassElements::EditorData , which you reflect using AZ::EditContext::ClassInfo::ClassElement() , or a non-group that you reflect using AZ::EditContext::ClassInfo::DataElement() .
Expected value type:
u32
Default value: 0
Example:
The following example shows how the
EditorLockComponent
specifies a slice flag.
◆ SoftMax
|
static |
Specifies a soft maximum for a slider range.
When you set this property, the sliders' range will be limited by this soft value. However, the user can still go above this number using the spin box.
Element type to use this with: AZ::Edit::UIHandlers::Slider , which you reflect using AZ::EditContext::ClassInfo::DataElement() .
Expected value type:
The same type as the
DataElement
.
Default value: None
◆ SoftMin
|
static |
Specifies a soft minimum for a slider range.
When you set this property, the sliders' range will be limited by this soft value. However, the user can still go below this number using the spin box.
Element type to use this with: AZ::Edit::UIHandlers::Slider , which you reflect using AZ::EditContext::ClassInfo::DataElement() .
Expected value type:
The same type as the
DataElement
.
Default value: None
◆ Step
|
static |
Specifies a step value, such as the increments by which a slider increases a value.
Element type to use this with: Any numeric type that you reflect using AZ::EditContext::ClassInfo::DataElement() .
Expected value type:
The same type as the
DataElement
.
Default value: None
Example:
The following example shows how to set the step value with which users can change the water density of the
RigidPhysicsConfiguration
class.
◆ StringList
|
static |
Provides strings for a combo box.
Element type to use this with: AZ::Edit::UIHandlers::ComboBox , which you reflect using AZ::EditContext::ClassInfo::DataElement() .
Expected value type:
AZStd::vector<AZStd::string>
Default value: None
Example: The following example shows how to get strings for a combo box by binding the string list to a function.
◆ StyleForW
|
static |
Specifies a W-axis label style for a multi-dimensional vector.
Element type to use this with: Any multi-dimensional vector that you reflect using AZ::EditContext::ClassInfo::DataElement() .
Expected value type:
AZStd::string
that contains valid Qt Style Sheet (qss) code
Default value: None
◆ StyleForX
|
static |
Specifies an X-axis label style for a multi-dimensional vector.
Element type to use this with: Any multi-dimensional vector that you reflect using AZ::EditContext::ClassInfo::DataElement() .
Expected value type:
AZStd::string
that contains valid Qt Style Sheet (qss) code
Default value: None
◆ StyleForY
|
static |
Specifies a Y-axis label style for a multi-dimensional vector.
Element type to use this with: Any multi-dimensional vector that you reflect using AZ::EditContext::ClassInfo::DataElement() .
Expected value type:
AZStd::string
that contains valid Qt Style Sheet (qss) code
Default value: None
◆ StyleForZ
|
static |
Specifies a Z-axis label style for a multi-dimensional vector.
Element type to use this with: Any multi-dimensional vector that you reflect using AZ::EditContext::ClassInfo::DataElement() .
Expected value type:
AZStd::string
that contains valid Qt Style Sheet (qss) code
Default value: None
◆ Suffix
|
static |
Appends a suffix to the value of the element.
Element type to use this with: Any numeric type that you reflect using AZ::EditContext::ClassInfo::DataElement() .
Expected value type:
AZStd::string
Default value: None
Example:
The following example shows how to append
degrees
when displaying the flare FOV angle of the
LensFlareConfiguration
class.
◆ ValueText
|
static |
Provides text to display on the right-hand side value area in Lumberyard Editor.
This will only work for elements that have no UI handler (for example, a group).
Element type to use this with: Elements that have no UI handler. Examples are AZ::Edit::ClassElements::Group , which you reflect using AZ::EditContext::ClassInfo::ClassElement() , or a container that you reflect using AZ::EditContext::ClassInfo::DataElement() .
Expected value type:
AZStd::string
Default value: None
◆ ViewportIcon
|
static |
Specifies a viewport icon to represent the element in Lumberyard Editor.
The value is a path to the icon.
Element type to use this with: AZ::Edit::ClassElements::EditorData , which you reflect using AZ::EditContext::ClassInfo::ClassElement() , of a class that has a viewport icon.
Expected value type:
AZStd::string
Default value: None
Example:
The following example shows how to specify a viewport icon for the
EditorSphereShapeComponent
.
◆ Visibility
|
static |
Specifies visibility settings for an element.
Element type to use this with: Any element that you reflect using AZ::EditContext::ClassInfo::DataElement() or AZ::EditContext::ClassInfo::ClassElement() .
Expected value type:
bool
or a
AZ::Edit::PropertyVisibility
type
Default value:
true
or
AZ::Edit::PropertyVisibility::Show
Example:
The following example binds the
Visibility
setting of a
PlayerDynamics
class to a
bool
member variable.