My program doesn't have bugs. It just develops random features.

Difference between revisions of "Legacy talk:SpawnNotify"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
(How to get it work)
 
 
Line 1: Line 1:
 
== How to get it work ==
 
== How to get it work ==
 
It took me some time to find out that a SpawnNotify has to be spawned from somewhere to get it work. Maybe it could be mentioned in the article. --[[User:SeriousBarbie|SeriousBarbie]] ([[User talk:SeriousBarbie|talk]]) 12:58, 2 October 2015 (EDT)
 
It took me some time to find out that a SpawnNotify has to be spawned from somewhere to get it work. Maybe it could be mentioned in the article. --[[User:SeriousBarbie|SeriousBarbie]] ([[User talk:SeriousBarbie|talk]]) 12:58, 2 October 2015 (EDT)
 +
 +
:There's really nothing special about it. You spawn it and it auto-registers itself in its PostBeginPlay(). In other words, all you need to do is implement SpawnNotification() in your subclass and specify an ActorClass to receive notifications for. The fact ''that'' you have to spawn it should be obvious from the fact that other things are somehow specified as well. You almost never write code and it somehow takes effect automagically, it's always registered somehow somewhere. —[[User:Wormbo|Wormbo]] 16:40, 2 October 2015 (EDT)

Latest revision as of 16:40, 2 October 2015

How to get it work[edit]

It took me some time to find out that a SpawnNotify has to be spawned from somewhere to get it work. Maybe it could be mentioned in the article. --SeriousBarbie (talk) 12:58, 2 October 2015 (EDT)

There's really nothing special about it. You spawn it and it auto-registers itself in its PostBeginPlay(). In other words, all you need to do is implement SpawnNotification() in your subclass and specify an ActorClass to receive notifications for. The fact that you have to spawn it should be obvious from the fact that other things are somehow specified as well. You almost never write code and it somehow takes effect automagically, it's always registered somehow somewhere. —Wormbo 16:40, 2 October 2015 (EDT)