Actor* gold = SpawnActor(ClassOf(Gold), Transform::Default, "Name", [](const Actor& spawnActor, const Vector& location){
String log = String::Format("name:%s, x:%f, y:%f", spawnActor.Name() location.X, location.Y);
Log(LogOtherParamters, log);
});
这段代码你要能看懂,基本就可以了。
中 上