Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 1.11 KB

Creating objects.md

File metadata and controls

27 lines (16 loc) · 1.11 KB

2020-12-31_12:14:21

Constructing objects

Blueprint

Create new instances of a UObject class that is not an Actor or a Component with the Construct Object from Class node. The class must include BlueprintType in its Class Specifiers.

[[2020-12-30_17:24:55]] Class specifiers
[[2020-08-14_09:32:03]] Creating Components at runtime
[[2020-11-30_10:36:27]] Creating components in constructor
[[2021-04-30_08:20:04]] Spawning Actors

C++

Instances of UCLASS classes must be created with ConstructObject, NewObject, or CreateDefaultSubobject. It is not allowed to create such instances using new.

CreateDefaultSubobject is used to create objects in the constructor of the owning object.

[[2020-11-30_10:36:27]] Creating components in constructor

NewObject/ConstructObject. What's the difference?

[[2020-08-14_09:32:03]] Creating Components at runtime