UMjDefault¶
Component that defines a MuJoCo
class.
Allows setting shared properties for nested bodies, joints, geoms, etc. Any component specifying this ClassName can inherit these values. Now inherits from UMjComponent to ensure consistency and bIsDefault support. Child components (UMjGeom, UMjJoint, etc.) attached to this component define the default values.
| Attribute | Value |
|---|---|
| Kind | Class |
| UE Macro | UCLASS |
| Inherits | UMjComponent |
| Blueprint Spawnable | ✅ Yes |
Properties¶
Public Properties¶
| Property | Type | Description |
|---|---|---|
ClassName |
FString |
Name of the default class. If empty, these defaults apply to the global scope. |
ParentClassName |
FString |
Name of the parent default class for inheritance. |
ClassName¶
Name of the default class. If empty, these defaults apply to the global scope.
- Type: FString
- Editor: ✏️ EditAnywhere
- Blueprint: 🔵 ReadWrite
- Category: Mj Default
ParentClassName¶
Name of the parent default class for inheritance.
- Type: FString
- Editor: ✏️ EditAnywhere
- Blueprint: 🔵 ReadWrite
- Category: Mj Default
Functions¶
Public Functions¶
General¶
| Function | Returns | Description |
|---|---|---|
UMjDefault() |
Default constructor. | |
ImportFromXml() |
void | Imports default settings from a MuJoCo XML |
ExportTo() |
void | Exports default settings to a MuJoCo mjsDefault structure. |
FindChildOfType() |
template<typename T> T* |
Finds the first direct child component of type T. |
ImportFromXml¶
Imports default settings from a MuJoCo XML
node.
- Signature:
ImportFromXml(const class FXmlNode*Node)
ExportTo¶
Exports default settings to a MuJoCo mjsDefault structure.
- Signature:
ExportTo(mjsDefault*def)
FindChildOfType¶
Finds the first direct child component of type T.
- Signature:
FindChildOfType() - Returns: template
T*