Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 624 Bytes

structs.md

File metadata and controls

29 lines (23 loc) · 624 Bytes
title layout nav_order
Structs
default
4

Structs

Members in a Unreal Engine exposed struct through UStruct, needs to be a field. If not exposed, none of that applies.

[UStruct]
public struct FMyStruct
{
    [UProperty(PropertyFlags.BlueprintReadOnly)]
    public int MyInt;
    
    [UProperty(PropertyFlags.BlueprintReadOnly)]
    public float MyFloat;
    
    [UProperty(PropertyFlags.BlueprintReadOnly)]
    public string MyString;
    
    [UProperty(PropertyFlags.BlueprintReadOnly)]
    public bool MyBool;
    
    [UProperty(PropertyFlags.BlueprintReadOnly)]
    public UObject MyObject;
}