|
| AZ_TYPE_INFO (Physics::MaterialPropertyValue, "{2D9822B6-B4AD-4635-87FD-08F857EEB152}") |
|
| MaterialPropertyValue (bool value) |
|
| MaterialPropertyValue (AZ::s32 value) |
|
| MaterialPropertyValue (AZ::u32 value) |
|
| MaterialPropertyValue (float value) |
|
| MaterialPropertyValue (const AZ::Vector2 &value) |
|
| MaterialPropertyValue (const AZ::Vector3 &value) |
|
| MaterialPropertyValue (const AZ::Vector4 &value) |
|
| MaterialPropertyValue (const AZ::Color &value) |
|
| MaterialPropertyValue (const AZStd::string &value) |
|
| MaterialPropertyValue (const MaterialPropertyValue &value) |
| Copy constructor.
|
|
template<typename T > |
MaterialPropertyValue & | operator= (const T &value) |
|
template<typename T > |
const T & | GetValue () const |
|
template<typename T > |
constexpr bool | Is () const |
| Check if the type holding is T.
|
|
AZ::TypeId | GetTypeId () const |
| Get TypeId of the type holding.
|
|
constexpr bool | IsValid () const |
| Check if the variant is holding a valid value.
|
|
bool | operator== (const MaterialPropertyValue &other) const |
|
bool | operator!= (const MaterialPropertyValue &other) const |
|
MaterialPropertyValue | CastToType (AZ::TypeId requestedType) const |
|
This is a variant data type that represents the value of a physics material property. Used by Physics material assets.
Attempt to cast the value to another type, handling numerical types (e.g. int to float, bool to int), vector types (e.g. Vector2 to Vector3) and color<->vector types (e.g. Vector[3-4] to Color). In conversions between vector based types of different dimension, the result gets truncated or padded with zeroes as needed. Conversions between color and vector types are only supported for 3 and 4 dimensional vectors. In case of incompatible types (e.g. string to float, Vector2 to Color), the current object is returned as-is.