Hello,
I am trying to create cables with this code:
ACableActor *cable1 = TheWorld->SpawnActor<ACableActor>(Loc, Rot);
UGameplayStatics::FinishSpawningActor(cable1, FTransform());
cable1->SetMaterial(cableMat);
cable1->SetEndLocation(Loc2);
However they dont show up and the compiler throw these errors:
/Users//Documents/PLGTest/Source/PLGTest/BSPLevelCell.cpp:149:13: error: unknown type name 'ACableActor'
ACableActor *cable1 = TheWorld->SpawnActor<ACableActor>(Loc, Rot);
^
/Users//Documents/PLGTest/Source/PLGTest/BSPLevelCell.cpp:149:56: error: use of undeclared identifier 'ACableActor'
ACableActor *cable1 = TheWorld->SpawnActor<ACableActor>(Loc, Rot);
^
/Users//Documents/PLGTest/Source/PLGTest/BSPLevelCell.cpp:149:68: error: expected unqualified-id
ACableActor *cable1 = TheWorld->SpawnActor<ACableActor>(Loc, Rot);
^
3 errors generated.
-------- End Detailed Actions Stats -----------------------------------------------------------
Cumulative action seconds (8 processors): 0.00 building projects, 8.78 compiling, 0.00 creating app bundles, 0.00 generating debug info, 0.00 linking, 0.00 other
UBT execution time: 19.03 seconds
Compiling with Mac SDK 10.9
Deploying now!
Command /Users/Shared/UnrealEngine/4.2/Engine/Build/BatchFiles/Mac/RocketBuild.sh emitted errors but did not return a nonzero exit code to indicate failure
How can I resolve this??
Greetings,