struct
VisualScriptComponentSlot
A named component slot — the class-description form of "this actor carries component X with these defaults". Slots apply to the backing ECS entity at OnConstruct; a child class (or later an instance) redeclaring a slot with the same name overrides the parent's type/defaults.
- Module
- VisualScripting
- Header
#include "VisualScripting/VisualScriptClass.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
std::string | name | |
std::string | componentType | reflected display name ("Light", "MeshRenderer") |
std::vector<std::pair<std::string, VisualScriptValue>> | defaults | serializedName → value |
bool | hasTransform | Slot placement (the Blueprint component-tree analog). A slot that declares a transform or an attach parent gets its OWN child entity under the actor, so a class can say "a Light two metres above the root"; a slot that declares neither keeps landing directly on the actor's entity, which is how every pre-placement .vscript still loads. Default false. |
Vec3 | location | |
Vec3 | rotation | |
Vec3 | scale | radians, matching TransformComponent Default Vec3(1.0f, 1.0f, 1.0f). |
std::string | attachParent | Name of the slot this one attaches under; empty = the actor root. |
Public functions
| Returns | Name | Description |
|---|---|---|
bool | IsPlaced |
Function details
IsPlaced
C++
bool IsPlaced() constGenerated from VisualScripting/VisualScriptClass.h via visualscripting.json · Nov 5, 2026Version 1.0.0