TIsUStruct

Currently supported fields (field list taken from UEd class viewer) - Field

Windows
MacOS
Linux

References

Module

NetcodeUnitTest

Header

/Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Public/NUTUtilReflection.h

Include

#include "NUTUtilReflection.h"

Syntax

template<typename T>
class TIsUStruct

Remarks

Currently supported fields (field list taken from UEd class viewer) - Field

  • Enum

    • UserDefinedEnum

  • Property readwrite - ArrayProperty readonly - BoolProperty arraycheck

  • DelegateProperty

  • InterfaceProperty

  • MulticastDelegateProperty readwrite - NameProperty arraycheck assign done - NumericProperty readwrite - ByteProperty arraycheck assign readwriteupcast - DoubleProperty arraycheck assign readwrite - FloatProperty arraycheck assign readwriteupcast - Int16Property arraycheck assign readwriteupcast - Int64Property arraycheck assign readwrite - Int8Property arraycheck assign readwriteupcast - IntProperty arraycheck assign readwriteupcast - FInt16Property arraycheck assign readwriteupcast - FIntProperty arraycheck assign readwriteupcast - FInt64Property arraycheck assign

  • ObjectPropertyBase readwrite - SoftObjectProperty assign inherited - SoftClassProperty inherited

  • LazyObjectProperty readwrite - ObjectProperty arraycheck assign inherited - ClassProperty inherited inherited readwrite - WeakObjectProperty readwrite - StrProperty arraycheck assign readwrite - StructProperty arraycheck readwrite - TextProperty arraycheck assign readwrite - Struct readwrite - Class

  • BlueprintGeneratedClass

  • AnimBlueprintGeneratedClass

  • GameplayAbilityBlueprintGeneratedClass

  • ScriptBlueprintGeneratedClass

  • WidgetBlueprintGeneratedClass

  • LinkerPlaceholderClass

  • Function

  • DelegateFunction

  • LinkerPlaceholderFunction readwrite - ScriptStruct

  • UserDefinedStruct

  • AISenseBlueprintListener

Other: readwrite - Static Arrays done - Static object array, context/object access (i.e. using ->* on object array elements) done - Dynamic object array, context/object access done - Struct context access ? - Struct object access done - Struct property casting This would be extremely nice to have, as a debug command; could even use the reflection helper to parse while typing, adding VAX-like autocomplete suggestions while typing on the console, for this class of console commands.

Beyond the scope of the unit test tool, but (with much of the legwork done below) it's low hanging fruit, that'd make for a nice feature. If you (eventually) add autocomplete to the unit test tool log window, this would be the next logical feature. Determines at compile-time, whether or not a type is defined as a USTRUCT, through TIsUStruct<Type>::Value

Constants

Name

Description

Value

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss