![]() |
ezEngine
Release 25.03
|
This message is used to replace the material on a mesh. More...
#include <MeshComponentBase.h>
Public Member Functions | |
EZ_DECLARE_MESSAGE_TYPE (ezMsgSetMeshMaterial, ezMessage) | |
EZ_ADD_RESOURCEHANDLE_ACCESSORS (Material, m_hMaterial) | |
virtual void | Serialize (ezStreamWriter &inout_stream) const override |
Implement this for efficient transmission across process boundaries (e.g. network transfer etc.) More... | |
virtual void | Deserialize (ezStreamReader &inout_stream, ezUInt8 uiTypeVersion) override |
![]() | |
virtual const ezRTTI * | GetDynamicRTTI () const |
bool | IsInstanceOf (const ezRTTI *pType) const |
Returns whether the type of this instance is of the given type or derived from it. | |
template<typename T > | |
EZ_ALWAYS_INLINE bool | IsInstanceOf () const |
Returns whether the type of this instance is of the given type or derived from it. | |
Public Attributes | |
ezMaterialResourceHandle | m_hMaterial |
The material to be used. | |
ezUInt32 | m_uiMaterialSlot = 0 |
The slot on the mesh component where the material should be set. | |
Additional Inherited Members | |
![]() | |
static const ezRTTI * | GetStaticRTTI () |
This message is used to replace the material on a mesh.
|
overridevirtual |
Reimplemented from ezMessage.
|
overridevirtual |
Implement this for efficient transmission across process boundaries (e.g. network transfer etc.)
If the message is only ever sent within the same process between nodes of the same ezWorld, this does not need to be implemented.
Note that PackageForTransfer() will automatically include the ezRTTI type version into the stream and ReplicatePackedMessage() will pass this into Deserialize(). Use this if the serialization changes.
Reimplemented from ezMessage.