Description
The raw UClass pointer wrapped by TSubclassOf. Stored as a TObjectPtr for GC tracking; all public API calls (Get, operator*, operator->) validate and return this value after a runtime IsChildOf check.
Caveats & Gotchas
- • Although Class is private, GetGCPtr() exposes it as a TObjectPtr reference for garbage collector integration — engine code uses this to register the member without full public exposure.
- • The raw Class pointer can hold any UClass regardless of the template parameter; the type constraint is enforced at the call sites of operator* and Get(), not in storage — this means deserialized or reflection-set values can violate the type guarantee at runtime.
Signature
TObjectPtr<UClass> Class = nullptr See Also
Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?