I'm receiving this error and cannot find any information on it so I thought I should ask about it on here, for my benefit and others'. This is the code I'm using to spawn an actor from a blueprint which I have assigned in the editor. - UBlueprint* VehicleBlueprint; // Assigned in the editor.
- ...
- GetWorld()->SpawnActor(VehicleBlueprint->StaticClass());
The error I get is 'SpawnActor failed because Blueprint is not an actor class'. Can anyone let me know what I'm doing wrong? Thanks.
Product Version: Not Selected
标签:c++blueprintspawn actor from classblueprint classspawnactor
更多 ▼
已提出 Sep 09 '14 在 2:32 AM  Daveoh
148 ● 14 ● 18 ● 108
|