handling-tarrays

Create UE.NewArray instances with Builtin types for ReactUMG TArray properties.

1|Updated Dec 23, 2025
One-click install
npx skills add https://github.com/15195999826/LomoMarketplace --skill handling-tarrays
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: handling-tarrays
Source: https://github.com/15195999826/LomoMarketplace/tree/main/plugins/UE_ReactUMG/skills/handling-tarrays/SKILL.md
Command: npx skills add https://github.com/15195999826/LomoMarketplace --skill handling-tarrays

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

TArray properties in ReactUMG must be created with UE.NewArray() and manipulated via provided methods; using plain JS arrays leads to type errors and broken bindings.

Core Features & Use Cases

  • Enforce UE.NewArray() usage for all TArray props.
  • Safe manipulation with .Add(), .Get(), .Set(), .Num() and related methods.
  • Real-world scenario: configure GridPanel ColumnFill using UE arrays instead of JS arrays.

Quick Start

Create a UE.NewArray(UE.BuiltinFloat), Add values, and pass it to GridPanel's ColumnFill.

Frequently Asked Questions about handling-tarrays

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why does passing a JavaScript array to ReactUMG GridPanel ColumnFill fail?

ReactUMG TArray properties require native UE arrays created with UE.NewArray(), not plain JavaScript arrays. Using JS arrays causes type errors and broken property bindings in GridPanel ColumnFill and other TArray props.

How do I create and populate a TArray for ReactUMG GridPanel columns?

Create a UE.NewArray(UE.BuiltinFloat), use .Add() to insert values, then pass it to GridPanel's ColumnFill property. Manipulate TArray data only through .Add(), .Get(), .Set(), .Num(), .RemoveAt(), and .Empty() methods—direct indexing is prohibited.

What data types can I use inside a ReactUMG TArray?

TArray supports UE.BuiltinFloat, UE.BuiltinInt, UE.BuiltinString, UE.BuiltinBool, and UE.BuiltinByte constants. Each TArray instance is typed to a single builtin type when created via UE.NewArray().

Can I use direct array indexing on ReactUMG TArray properties?

No. TArray prohibits direct indexing syntax. Instead, use .Get(index) to read values and .Set(index, value) to write them. This enforcement ensures type safety and maintains proper UE bindings.

Does this approach work with ReactUMG widget properties beyond GridPanel?

Yes. UE.NewArray() and its safe manipulation methods apply to all ReactUMG TArray properties, not just GridPanel ColumnFill and RowFill. Any widget prop expecting a TArray must follow this pattern.