Engine reference: Unreal¶
The plugin Sona360 for Unreal Engine 5. Everything below is reachable from Blueprints; C++ calls the same functions.
USonaAvatarComponent¶
A USceneComponent. One 360sona avatar. It faces the component's +X; its placement is the component's transform.
| Property | Type | Default | What it does |
|---|---|---|---|
Manifest |
FString |
"" |
The avatar's manifest (AvatarDescription) as base64, at most 4096 characters, as the web's add() takes. Read only. |
Clip |
FString |
TEXT("idle") |
A clip key ("GenericWave"), a raw clip id, "prop", "idle" or "still". Read only. |
bLoop |
bool |
true |
Default 1. Read only. |
Speed |
float |
1.0f |
Default 1. Read only. |
StartAt |
float |
0.0f |
Seconds into the clip at the start; negative picks a random time, to desynchronise a crowd. Read only. |
Priority |
int32 |
0 |
Higher builds sooner. Read only. |
bCastShadow |
bool |
true |
The avatar's meshes cast shadows. Read only. |
OnReady |
FSonaAvatarReady |
(an event) | Fires once when the avatar is built and on screen. |
OnFailed |
FSonaAvatarFailed |
(an event) | Fires when the avatar cannot be built, with the result code and the message. |
PreviewItem |
FString |
"" |
An item id: the component shows that item alone on a grey stand-in body instead of Manifest. Read only. |
PreviewOptions |
FSonaPreviewOptions |
(its own defaults) | The options of an item preview (SetPreviewItem). Read only. |
OnClipEvent |
FSonaClipEventDelegate |
(an event) | Clip events as they happen, when bound. Unbound, they wait for TakeClipEvents. |
| Function | What it does |
|---|---|
void SetPreviewItem(const FString& ItemId, const FSonaPreviewOptions& Options) |
Replaces the avatar with a preview of one item; the old one is removed. |
bool GetPreviewBounds(FBox& OutBox) |
The previewed item's box in the world. False before ready or for an avatar that is not a preview. |
bool GetPreviewView(int32 Width, int32 Height, FVector& OutEye, FVector& OutTarget, float& OutVerticalFovDeg) |
The framed camera for a Width x Height picture: eye, target and the vertical field of view. |
static int32 FindJoint(const FString& Name) |
A joint by name ("Hips", "Head", "PropRight", "shape_04", "joint_33"); -1 when unknown. Pure. |
static FString GetJointName(int32 Joint) |
The name of joints 0 to 70: the humanoid name, or shape_NN. Pure. |
bool GetJointTransform(int32 Joint, FTransform& OutTransform) const |
A joint's world transform at the last tick. False before the avatar is ready and posed. |
bool SetJointOverride(int32 Joint, FRotator Rotation, float Weight = 1.0f, ESonaOverrideMode Mode = ESonaOverrideMode::Replace) |
A rotation applied after the clip each tick, in the joint's own space (Unreal axes); Weight 0 to 1 blends from the clip. False before the avatar is ready. |
bool ClearJointOverride(int32 Joint) |
A rotation applied after the clip each frame, for look-at and aiming. |
void ClearOverrides() |
Clears every override of the avatar. |
bool Crossfade(const FString& InClip, float Seconds = 0.25f, bool bInLoop = true, float InSpeed = 1.0f, float From = 0.0f) |
Play, blending from the current pose over Seconds. Clears the queue. |
bool QueueClip(const FString& InClip, float FadeSeconds = 0.0f, bool bInLoop = false, float InSpeed = 1.0f, float From = 0.0f) |
Plays InClip when the current one ends (queue after a clip that does not loop). At most 8. |
int32 GetQueued() const |
How many clips are waiting in the queue. Pure. |
bool GetFilterReport(int32& OutCount, TArray<FSonaContentChange>& OutChanges) const |
What the context's content filter changed on this avatar. False before it is read, or when no filter was set then. |
bool GetCapsule(FVector& OutA, FVector& OutB, float& OutRadius) const |
A vertical capsule around the posed body, in the world: the segment A..B and its radius (centimetres). |
bool SetExpression(int32 Mouth = 255, int32 LeftEyebrow = 255, int32 RightEyebrow = 255, int32 LeftEye = 255, int32 RightEye = 255) |
Shape indexes; 255 leaves that part to the clip. Mouth 7-13 are speech shapes (O, AI, EE, FV, W, L, DTH). |
bool ClearExpression() |
Hands the whole face back to the clip. |
bool GetExpressionCounts(int32& OutMouths, int32& OutEyebrows, int32& OutEyes) const |
How many shapes this face has: counts[0] mouth, counts[1] eyebrows, counts[2] eyes. |
TArray<FSonaClipEvent> TakeClipEvents() |
What happened on the clip since the last call, oldest first. |
bool AddMark(float Seconds, int32 Id) |
A Mark event with this id each time the current clip passes Seconds. At most 16; gone when another clip starts. |
void ClearMarks() |
Removes the avatar's marks. |
bool SetRootMotion(ESonaRootMotion Mode) |
What happens to the clip's sideways travel of the hips. |
FVector TakeRootMotion() |
The travel collected since the last call (Extract), in centimetres. Zero with Apply. |
ESonaLod GetLod(float& OutFade) const |
The level-of-detail step at the last tick, and in OutFade how far from mesh (0) to sprite (1). Pure. |
bool SetLimbTarget(ESonaLimb Limb, FVector Location, float Weight = 1.0f, bool bUsePole = false, FVector Pole = FVector::ZeroVector, bool bWrist = false, float FadeSeconds = 0.2f) |
Two-bone IK: a hand's palm (bWrist: the wrist joint) or a foot's ankle at Location (world). The elbow or knee bends towards Pole when bUsePole, else as the clip bends it. Call each tick for a moving target. |
bool ClearLimbTarget(ESonaLimb Limb) |
Hands the limb back to the clip at once. |
bool SetFeetPlanting(bool bEnable, float GroundZ = 0.0f, float Weight = 1.0f) |
Feet planted on a flat ground at height GroundZ (world); the hips lower or rise so both reach. |
bool SetLookAt(FVector Target, float Weight = 1.0f) |
The head (and eyes) turn towards Target within the core's limits. |
bool ClearLookAt() |
Turns the chest, neck and head towards the world point target inside the limits, eased; the eyes take the rest through the face's look shapes when it has them. |
void ClearIK() |
Every target, planting and look-at off at once. |
static int32 GetJointParent(int32 Joint) |
The joint above Joint in the rig (Hips is the root: -1). Pure. |
static int32 GetJointCount() |
Joints in the rig (71). Pure. |
FString GetManifest() const |
The avatar's manifest as it was given (base64), or empty for an item preview. Pure. |
void GetDrawnCounts(int32& OutSections, int32& OutVertices) const |
Mesh sections and vertices drawn at the last pose. Pure. |
TArray<FString> GetDrawnItems() const |
The items whose meshes were built (ids as the manifest's GUIDs, 8-4-4-4-12). An item whose file is missing from every source draws nothing and is not listed. Pure. |
void SetManifest(const FString& Base64) |
Replaces the avatar; the old one is removed. |
bool Play(const FString& InClip, bool bInLoop = true, float InSpeed = 1.0f, float From = 0.0f) |
Plays a clip. |
void Stop() |
Holds the current pose. |
ESonaAvatarState GetState() const |
The avatar's state. Pure. |
bool IsReady() const |
True once the avatar is built and on screen. Pure. |
USonaSubsystem¶
A UGameInstanceSubsystem. Owns the 360sona context for a game instance and ticks it with the player camera's view.
| Property | Type | Default | What it does |
|---|---|---|---|
OnError |
FSonaErrorEvent |
(an event) | Context-wide errors: licence, app, platform, build, limit, gate. |
| Function | What it does |
|---|---|
bool IsOpen() const |
True once the context is open. Pure. |
FString GetLastError() const |
The context's last error message, or empty. Pure. |
TArray<FString> GetClipKeys() const |
Clip keys usable with USonaAvatarComponent:: |
bool SetLod(const FSonaLodOptions& Options) |
Sets the level-of-detail options, from the next tick. A context opens with every avatar in view posed every frame. |
bool GetLod(FSonaLodOptions& OutOptions) const |
Copies the current options: before any sona_lod_set, thresholds 120 and 40 and no sprites (sprite_px 0). |
FSonaLodStats GetLodStats() const |
The level-of-detail counts at the last tick. |
bool SetContentFilter(USonaFilter* Filter, USonaCatalogue* Catalogue = nullptr) |
A copy of Filter goes on the context: every avatar read from then on is filtered (USonaAvatarComponent:: GetFilterReport says what changed). Catalogue, when given, lists through Filter too. Null takes it away. |
USonaSettings¶
A UDeveloperSettings. The plugin's project settings (Project Settings, 360sona).
| Property | Type | Default | What it does |
|---|---|---|---|
LicenceFile |
FString |
TEXT("Sona360/sona-licence.json") |
sona-licence. |
Sources |
TArray<FSonaSourceSetting> |
empty | Asked in order; the first that has an asset wins. At most 4. Empty: the gate alone. |
AppId |
FString |
"" |
Your app's id from 360sona. |
CheckHost |
FString |
"" |
Empty: the devs site, https:/ |
WorkerThreads |
int32 |
-1 |
-1: cores - 1. 0: no worker threads; work runs inside the tick. |
MaxAvatars |
int32 |
256 |
Default 256, at most 16384. |
BuildBudgetMs |
float |
6.0f |
Owner-thread loading work per sona_update (steps, commits; builds run on the workers); default 6. Avatars shown per update are also paced by the draw work they add. |
FaceSize |
int32 |
0 |
0: auto. Otherwise 128, 256 or 512. |
bStillFaces |
bool |
false |
One face per avatar instead of faces that follow each clip's expressions. |
bAppBehaviour |
bool |
false |
The app-faithful idle player with crossfades instead of the web SDK's idle chooser. |
Seed |
int32 |
0 |
0: from the clock. Fix it for repeatable idles. |
bShowCredit |
bool |
true |
The SDK Licence asks for a small "Powered by 360sona" badge (linking to https:/ |
CreditCorner |
ESonaCreditCorner |
ESonaCreditCorner::BottomRight |
Where the "Powered by 360sona" badge sits. |
Material |
TSoftObjectPtr<UMaterialInterface> |
null | The avatars' material; the plugin ships M_SonaAvatar. Empty: plain vertex colours. The plugin sets its parameters per material: SonaColor, SonaIntensity and SonaDecal (textures on UV channels 0, 1 and 2), SonaRimReflectivity, SonaTransparency, SonaReflective, SonaSkin and SonaShaderId; a material of your own needs the same parameters. |
TranslucentMaterial |
TSoftObjectPtr<UMaterialInterface> |
null | The material for the avatars' see-through parts; the plugin ships M_SonaAvatarTranslucent, with the same parameters. |
bReverseWinding |
bool |
false |
On Unreal Engine 5.8.4 with Vulkan the plaza starter needs this on, or the avatars draw inside out (black when lit from the front); the default is left off until the other projects are checked with it. |
ESonaAvatarState¶
A Blueprint enum. Where an avatar is in its life.
Values: None, Queued, Loading, Ready, Failed, Removed.
ESonaOverrideMode¶
A Blueprint enum. How a joint override turns its joint.
| Value | Meaning |
|---|---|
Replace |
The joint's rotation from its rest orientation. |
Add |
Rotated on top of the clip's. |
ESonaRootMotion¶
A Blueprint enum. What happens to the clip's travel.
| Value | Meaning |
|---|---|
Off |
The clip's travel stays in the pose: the hips move away from the actor as the clip moves them. |
Extract |
The core holds the hips where the clip starts; TakeRootMotion hands you the travel. |
Apply |
The component moves by the travel each tick. |
ESonaLimb¶
A Blueprint enum. sona_avatar_ik_target's limbs.
Values: LeftHand, RightHand, LeftFoot, RightFoot.
ESonaLod¶
A Blueprint enum. The level-of-detail steps: posed every tick, posed less often, posed a quarter as often, a sprite.
Values: Full, Sampled, Quarter, Sprite.
ESonaClipEventKind¶
A Blueprint enum. What a clip event reports.
Values: None, Started, Looped, Ended, FootLeft, FootRight, Mark.
FSonaClipEvent¶
A Blueprint struct. One clip event, as OnClipEvent reports it.
| Property | Type | Default | What it does |
|---|---|---|---|
Kind |
ESonaClipEventKind |
ESonaClipEventKind::None |
What happened. |
Mark |
int32 |
0 |
The mark's id for Mark events. |
Clip |
int32 |
-1 |
The clip's index in USonaSubsystem:: |
Time |
float |
0.0f |
Seconds into the clip. |
FSonaPreviewOptions¶
A Blueprint struct. sona_preview_options. Zero fields take the core's defaults.
| Property | Type | Default | What it does |
|---|---|---|---|
Gender |
int32 |
0 |
1 male, 2 female; 0: the body the item was made for. |
Slot |
int32 |
0 |
The category mask to frame by (0x40 hat, ...); 0: from the item. |
bUseColours |
bool |
false |
Wear the colours below instead of the item's own. |
Colours |
TArray<FColor> |
empty | 0xAARRGGBB primary, secondary, tertiary, with SONA_PREVIEW_COLOURS. |
Skin |
FColor |
FColor(0, 0, 0, 0) |
The stand-in's skin; transparent: the core's grey. |
Time |
float |
-1.0f |
Props: seconds into the clip to hold; negative: its fullest frame. |
Margin |
float |
0.0f |
Room around the item; 0: the core's 1.36. |
FSonaItemInfo¶
A Blueprint struct. One item of the offline catalogue. Flags are the SONA_ITEM_* bits: 1 offered, 2 named, 4 stock, 8 award, 16 marketplace, 32 hidden, 64 not pickable, 128 has a model, 256 a glTF exists, 512 colourable, 1024 colourways, 2048 more than one slot.
| Property | Type | Default | What it does |
|---|---|---|---|
Id |
FString |
"" |
Lowercase text form. Read only. |
Guid |
TArray<uint8> |
empty | Wire byte order, as a manifest stores it. Read only. |
Name |
FString |
"" |
The item's name. Read only. |
Game |
FString |
"" |
The game or source it comes from. Read only. |
Type |
FString |
"" |
"Shirt/Hoodie". Read only. |
Family |
FString |
"" |
"Shirt". Read only. |
Description |
FString |
"" |
How an award is earned. Read only. |
Section |
FString |
"" |
"shirt", "facialHair", ... Read only. |
SectionIndex |
int32 |
0 |
The editor section the item is offered in, by number (USonaCatalogue:: |
Kind |
int32 |
0 |
1 model, 2 texture, 3 shape override, 4 animation; 0 unknown. Read only. |
Gender |
int32 |
0 |
1 male, 2 female, 3 both, 0 not stated. Read only. |
Mask |
int64 |
0 |
The AssetMask slot bits. Read only. |
Flags |
int64 |
0 |
SONA_ITEM_*. Read only. |
ColourSet |
int32 |
0 |
The palette it tints from; 0 when not SONA_ITEM_COLOURABLE. Read only. |
ColourChoices |
int32 |
0 |
Colourways in its own colour table; 0 when not stated. Read only. |
FSonaCatalogueQuery¶
A Blueprint struct. What USonaCatalogue::Search matches. Empty fields match anything.
| Property | Type | Default | What it does |
|---|---|---|---|
Text |
FString |
"" |
Words that must all be in the name, game or type; "in quotes" matches the whole name. |
Game |
FString |
"" |
That game only (ASCII case folded); NULL: any. |
Slots |
int64 |
0 |
AssetMask bits: items with any of them; 0: any. |
Section |
int32 |
0 |
Sona_section; 0: any. |
Gender |
int32 |
0 |
1 or 2: what the editor offers that body. |
Require |
int64 |
0 |
SONA_ITEM_* that must all be set. |
Exclude |
int64 |
0 |
SONA_ITEM_* that must all be clear. |
Offset |
int32 |
0 |
Skip this many matches, for paging. |
USonaCatalogue¶
A UObject. The offline catalogue (sona-catalogue.bin from the download): names, slots, games and sources of every item id, with no web call. It never changes once loaded.
| Function | What it does |
|---|---|
static USonaCatalogue* LoadCatalogue(const FString& Path) |
Relative paths are taken from the project's Content folder. Null when the file is missing or bad. |
int32 Num() const |
Items, sorted by id. Pure. |
bool GetItem(int32 Index, FSonaItemInfo& OutItem) const |
One item. |
int32 Find(const FString& Id) const |
The index of an item id (any case, dashes or not), or -1. Pure. |
int32 FindGuid(const TArray<uint8>& Guid) const |
The same by the 16 wire-order bytes of an item's guid (FSonaItemInfo:: |
TArray<int32> Search(const FSonaCatalogueQuery& Query, int32 Max, int32& OutTotal) const |
Up to Max matching indexes in id order, after Query.Offset; OutTotal counts every match. With a content filter (SetFilter, or USonaSubsystem:: |
void GetGames(TArray<FString>& OutNames, TArray<int32>& OutItems) const |
The games items come from, sorted by name, with their item counts. |
FString GetGenerated() const |
When its data was made, ISO 8601. Pure. |
static FString SectionName(int32 Section) |
A sona_section as the editor spells it; NULL past the last. Pure. |
void SetFilter(USonaFilter* InFilter) |
The content filter Search lists through; null lists every item. |
USonaFilter* GetFilter() const |
The content filter on this catalogue, or none. Pure. |
ESonaEditorMode¶
A Blueprint enum. The editor's three screens: the full creator, the quick creator and the wardrobe picker.
| Value | Meaning |
|---|---|
Full |
360sona.com's editor: Body, Appearance and Wardrobe. |
Quick |
Eight generated looks, one screen of quick changes, done. |
Wardrobe |
The clothes only, on the start manifest. |
ESonaEditorStatus¶
A Blueprint enum. Where an editor session is.
Values: Closed, Running, Done, Cancelled.
ESonaEditorScreen¶
A Blueprint enum. A screen of the editor. Full: Body, Appearance, Wardrobe.
| Value | Meaning |
|---|---|
Looks |
The quick creator's eight generated looks. |
Body |
The body card: the two figures, the build triangle, height, weight and the skin. |
Face |
Deprecated in 1.1, kept until 2.0: use Appearance. |
Hair |
Deprecated in 1.1, kept until 2.0: use Appearance (it opens on Hair). |
Colours |
Deprecated in 1.1, kept until 2.0: use Body (the Wardrobe in the wardrobe picker). |
Wardrobe |
The clothes, in the site's order. |
Quick |
The quick creator's four quick changes. |
Appearance |
Hair and the face, each part with its colour. |
FSonaEditorControl¶
A Blueprint struct. One control on screen, as a screen reader gets it (sona_editor_control).
| Property | Type | Default | What it does |
|---|---|---|---|
Id |
int32 |
0 |
Stable while the control exists. Read only. |
Role |
int32 |
0 |
SONA_EDITOR_ROLE_*: 1 button, 2 tab, 3 list item, 4 option (a look, an item or a colour), 5 slider, 6 spin, 7 search. Read only. |
bFocused |
bool |
false |
The control has the focus. Read only. |
bSelected |
bool |
false |
The control is the one picked (a worn item, the current tab). Read only. |
bDisabled |
bool |
false |
The control cannot be used now. Read only. |
Rect |
FVector4 |
FVector4(0, 0, 0, 0) |
Pixels of the editor's picture: X, Y, width, height from the top left. Read only. |
Index |
int32 |
0 |
"index + 1 of count" in its group (0, 0 when none) Read only. |
Count |
int32 |
0 |
"index + 1 of count" in its group (0, 0 when none) Read only. |
Label |
FString |
"" |
UTF-8, NUL-terminated: "Blue Hoodie". Read only. |
Value |
FString |
"" |
Sliders and spins. Read only. |
Hint |
FString |
"" |
What pressing it does: "Wear it". Read only. |
USonaEditorSession¶
A UObject. The drop-in avatar editor (sona_editor) in a context of its own. It draws the whole editor, avatar and UI, on the library's own headless device into Texture each tick; USonaEditorWidget shows it and feeds it input.
| Property | Type | Default | What it does |
|---|---|---|---|
OnDone |
FSonaEditorFinished |
(an event) | Fires with the finished manifest when the player is done. |
OnCancelled |
FSonaEditorFinished |
(an event) | Fires when the player cancels. |
| Function | What it does |
|---|---|
static USonaEditorSession* OpenEditor(UObject* WorldContextObject, USonaCatalogue* Catalogue, ESonaEditorMode Mode = ESonaEditorMode::Full, const FString& StartManifest = TEXT(""), int32 Width = 1280, int32 Height = 720, bool bDarkTheme = false) |
Catalogue: required (names, sections and what can be worn). StartManifest: base64; empty starts a blank figure. |
FString GetError() const |
Why OpenEditor gave a session that is not running. Pure. |
ESonaEditorStatus GetStatus() const |
SONA_EDITOR_RUNNING, _DONE or _CANCELLED, as the last sona_editor_update returned. Pure. |
bool IsBusy() const |
True while an avatar is still building (the shown one or a change on its way). Pure. |
UTexture2D* GetTexture() const |
The editor as drawn at the last tick: sRGB, Width x Height. Pure. |
FString GetManifest() const |
The avatar as it stands now (base64). After Cancelled it is the start manifest. |
void PressButton(ESonaEditorButton Button, bool bDown) |
A gamepad button down or up. |
void SetAxis(int32 Axis, float Value) |
Left stick (0, 1) and right stick (2, 3), -1..1 with +Y down; triggers 4 and 5, 0..1. |
void Pointer(float X, float Y, int32 Down, int32 Id = 0) |
Pixels in the editor's own size, top-left origin. Down: 1 pressed, 0 released, -1 moved. |
void Wheel(float X, float Y, float Lines) |
A mouse wheel or trackpad scroll over the editor. |
void Close() |
Closes the editor without an event and removes its avatars. |
TArray<FSonaEditorControl> GetControls() const |
Every control on screen in reading order, for screen readers, tests and your own input. Pure. |
bool GetFocus(FSonaEditorControl& Out) const |
The focused control; false when nothing has focus. Pure. |
ESonaEditorScreen GetScreen() const |
The screen shown now. Pure. |
bool SetScreen(ESonaEditorScreen Screen) |
False for a screen the mode does not have. |
FVector4 GetAvatarRect() const |
Where the avatar shows through the UI: X, Y, width, height. Pure. |
int32 GetBuildFailures() const |
Avatar builds that failed since the editor opened. Pure. |
bool SavePicture(const FString& Path) const |
The last picture as a PNG file. |
USonaEditorWidget¶
A UWidget. The drop-in avatar editor as a UMG widget: add it to a widget, call Open, and On Done hands back the finished manifest. Gamepad, keyboard, mouse and touch reach the editor while the widget has focus.
| Property | Type | Default | What it does |
|---|---|---|---|
Mode |
ESonaEditorMode |
ESonaEditorMode::Full |
The screen the editor opens on. |
StartManifest |
FString |
"" |
Base64; empty starts a blank figure (Wardrobe needs one). |
CataloguePath |
FString |
TEXT("Sona360/sona-catalogue.bin") |
sona-catalogue. |
bDarkTheme |
bool |
false |
The editor's dark colours; off, the light ones. |
Resolution |
FIntPoint |
FIntPoint(1280, 720) |
The editor's own pixel size; the widget scales its picture to fit. |
OnDone |
FSonaEditorFinished |
(an event) | Fires with the finished manifest when the player is done. |
OnCancelled |
FSonaEditorFinished |
(an event) | Fires when the player cancels. |
| Function | What it does |
|---|---|
bool Open() |
Opens the editor (closing one already open). False with the reason in GetError. |
void Close() |
Closes the editor without an event. |
USonaEditorSession* GetSession() const |
The editor session the widget shows, or none while closed. Pure. |
FString GetError() const |
Why the last Open failed, or empty. Pure. |
ESonaContentMode¶
A Blueprint enum. Whether a filter rule allows or denies.
Values: Allow, Deny.
ESonaContentPreset¶
A Blueprint enum. Ready-made filters: family, no logos, no licensed characters.
| Value | Meaning |
|---|---|
Family |
No weapons, horror or alcohol. |
NoLogos |
No logos (the man's default tee included; a plain tee stands in). |
NoLicensed |
No items from a licensed franchise. |
FSonaContentVerdict¶
A Blueprint struct. Why an item is denied, as SONA_CONTENT_BY_*: 0 allowed, 1 id, 2 source, 3 section, 4 slot, 5 game, 6 tag, 7 not allowed.
| Property | Type | Default | What it does |
|---|---|---|---|
bAllowed |
bool |
true |
True when the filter allows the item. Read only. |
Reason |
int32 |
0 |
Why it is denied: 0 allowed, 1 id, 2 source, 3 section, 4 slot, 5 game, 6 tag, 7 not allowed. Read only. |
Tag |
FString |
"" |
The tag that denied it, or empty. Read only. |
Section |
int32 |
0 |
The item's editor section. Read only. |
FSonaContentChange¶
A Blueprint struct. One item a filter changed on an avatar.
| Property | Type | Default | What it does |
|---|---|---|---|
From |
FString |
"" |
The item id the avatar wore. Read only. |
To |
FString |
"" |
What took its place; empty when it was taken off, or for the head's own shape. Read only. |
bReplaced |
bool |
false |
True when another item took its place; false when the slot was emptied. Read only. |
Reason |
int32 |
0 |
Why it was denied, as FSonaContentVerdict. |
Section |
int32 |
0 |
The item's editor section. Read only. |
USonaFilter¶
A UObject. USonaSubsystem::SetContentFilter puts a copy on the context (every avatar is filtered when it is read) and on a catalogue, whose Search then lists allowed items only. Set it again after changing the rules.
| Function | What it does |
|---|---|
static USonaFilter* CreateFilter(USonaCatalogue* Catalogue) |
Made from the catalogue's items, names and games; Catalogue may be null (id, slot, section and source rules only). |
bool Reset() |
Every rule goes; tags stay. |
bool Preset(ESonaContentPreset Which) |
Adds a preset's rules (SONA_FILTER_PRESET_*, listed in Content filters). |
bool Sections(ESonaContentMode Mode, int64 Bits) |
Bits (1 << section index). |
bool Slots(ESonaContentMode Mode, int64 Bits) |
AssetMask slot bits. |
bool Sources(ESonaContentMode Mode, int64 Bits) |
1 stock, 2 award, 4 marketplace, 8 custom, 16 unlisted. |
bool Game(ESonaContentMode Mode, const FString& Name) |
A game as sona_catalogue_game names it (ASCII case folded). |
bool Tag(ESonaContentMode Mode, const FString& Name) |
A tag by name ("weapon", "logo", or one the host defined). |
bool Item(ESonaContentMode Mode, const FString& Id) |
Adds a rule on one item by id. |
bool LoadRules(const FString& Path, FString& OutError) |
A rules file (JSON); relative paths are taken from the project's Content folder. All or nothing. |
bool LoadRulesText(const FString& Json, FString& OutError) |
Rules from JSON (Content filters): {"preset": [...], "allow": {...}, "deny": {...}, "tags": {...}, "untag": {...}}. |
bool SetTag(const FString& Id, const FString& TagName, bool bOn = true) |
-1 when unknown. |
TArray<FString> GetTags() const |
How many tags the filter knows, built-in and host-defined. Pure. |
bool Allows(const FString& Id) const |
True when the item is allowed; a NULL filter allows everything. Pure. |
FSonaContentVerdict Check(const FString& Id) const |
Whether the item is allowed, and if not, which rule denied it (SONA_CONTENT_BY_*) and the item's tags. |
int32 AllowedCount() const |
Catalogue items allowed. Pure. |
USonaLoadAvatarAction¶
A UBlueprintAsyncActionBase. The "Load 360sona Avatar" Blueprint node: spawns an actor holding one avatar and fires On Ready or On Failed.
| Property | Type | Default | What it does |
|---|---|---|---|
OnReady |
FSonaLoadAvatarPin |
(an event) | The avatar is built: its component, code 0. |
OnFailed |
FSonaLoadAvatarPin |
(an event) | The avatar could not be built: the result code and the message. |
| Function | What it does |
|---|---|
AActor* GetActor() const |
The spawned actor, set once Activate ran. Pure. |
ESonaSourceKind¶
A Blueprint enum. Where the context reads avatars from.
| Value | Meaning |
|---|---|
Gate |
The 360sona gate. Location empty: https:/ |
Directory |
A folder of item files laid out as the gate serves them, which the player owns. Works offline with the licence file alone. |
Console |
An Xbox 360 Content root (a PC path to a copied Content tree). |
FSonaSourceSetting¶
A Blueprint struct. One source in the project settings.
| Property | Type | Default | What it does |
|---|---|---|---|
Kind |
ESonaSourceKind |
ESonaSourceKind::Gate |
The kind of source. |
Location |
FString |
"" |
Relative paths are taken from the project directory. |
ESonaCreditCorner¶
A Blueprint enum. Where the badge sits.
Values: BottomRight, BottomLeft, TopRight, TopLeft.
FSonaLodOptions¶
A Blueprint struct. sona_lod_options: how far avatars are posed less often. Unreal draws meshes, not our sprites, so SpritePx stays 0 unless you set it (a SPRITE avatar is not posed).
| Property | Type | Default | What it does |
|---|---|---|---|
FullPx |
float |
120.0f |
At or above this height on screen in pixels: posed every frame. |
QuarterPx |
float |
40.0f |
Below: posed at most every 4th frame. |
SpritePx |
float |
0.0f |
Below: SPRITE. Default 48; 0: never. |
FadeSeconds |
float |
0.25f |
Mesh-to-sprite crossfade. Default 0.25; 0: a cut. |
SpriteAngles |
int32 |
8 |
Turns baked per look, 4 to 32. Default 8. |
SpriteHeight |
int32 |
96 |
Pixels per baked picture, 32 to 512; half as wide. Default 64. |
MaxLooks |
int32 |
512 |
Looks with baked sprites per renderer; more stay meshes. Default 16384. |
BakeMs |
float |
4.0f |
Baking time per sona_draw; at least one look per draw. Default 4. |
FSonaLodStats¶
A Blueprint struct. Avatars in view per step at the last tick.
| Property | Type | Default | What it does |
|---|---|---|---|
Full |
int32 |
0 |
Avatars in view per step at the last sona_update. Read only. |
Sampled |
int32 |
0 |
Avatars in view per step at the last sona_update. Read only. |
Quarter |
int32 |
0 |
Avatars in view per step at the last sona_update. Read only. |
Sprite |
int32 |
0 |
Avatars in view per step at the last sona_update. Read only. |
Fading |
int32 |
0 |
Of those, crossing between a mesh and a sprite. Read only. |
USonaControlRigComponent¶
A UActorComponent. Control Rig IK for the USonaAvatarComponent on the same actor. Each tick the rig's bones take the avatar's pose (avatar space, centimetres), the rig runs its Forwards Solve, and its five controls (ik_hand_l, ik_hand_r, ik_foot_l, ik_foot_r, look) become the avatar's IK targets, which the 360sona core solves within its joint limits.
| Property | Type | Default | What it does |
|---|---|---|---|
ControlRigClass |
TSubclassOf<UControlRig> |
null | Empty: USonaIKControlRig. Your own rig's graph can set the five controls (from the bones, which carry the avatar's joint names); the controls and bones are added when its hierarchy lacks them. Read only. |
Weight |
float |
1.0f |
How much of the rig's pose the avatar takes, 0 to 1. |
bLeftHand |
bool |
false |
Which controls drive the avatar. Off, the clip has that limb. |
bRightHand |
bool |
false |
The right-hand control drives the avatar; off, the clip has that hand. |
bLeftFoot |
bool |
false |
The left-foot control drives the avatar. |
bRightFoot |
bool |
false |
The right-foot control drives the avatar. |
bLook |
bool |
false |
The look control turns the head and eyes. |
| Function | What it does |
|---|---|
UControlRig* GetControlRig() const |
The Control Rig instance, or none before the avatar's first ready tick. Pure. |
bool SetControlWorldLocation(FName Control, FVector Location) |
A control's place in the world. False before the rig is made (the avatar's first ready tick). |
bool GetControlWorldLocation(FName Control, FVector& OutLocation) const |
A control's place in the world; false before the rig is made. |
int32 GetBoneCount() const |
How many bones the rig has. Pure. |
int32 GetControlCount() const |
How many controls the rig has. Pure. |
This page as Markdown · All the docs as one file (llms-full.txt)