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

TypeNameDescription
std::stringname
std::stringcomponentTypereflected display name ("Light", "MeshRenderer")
std::vector<std::pair<std::string, VisualScriptValue>>defaultsserializedName → value
boolhasTransformSlot 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.
Vec3location
Vec3rotation
Vec3scaleradians, matching TransformComponent Default Vec3(1.0f, 1.0f, 1.0f).
std::stringattachParentName of the slot this one attaches under; empty = the actor root.

Public functions

ReturnsNameDescription
boolIsPlaced

Function details

IsPlaced

C++
bool IsPlaced() const
Generated from VisualScripting/VisualScriptClass.h via visualscripting.json · Nov 5, 2026Version 1.0.0