ALevelScriptActor class not showing up

Hi Guys,

I want to use a C++ class for the blueprint level class to inherit from (using the Repurpose option).

I looked at Rama’s guide here: A new, community-hosted Unreal Engine Wiki - Announcements and Releases - Unreal Engine Forums and I have a class that derives from ALevelScriptActor, but it does not appear in the drop-down to repurpose.

Is there anything else I need to do?

This is the class declaration, it’s relatively simple and I’ve not added anything to it yet:



// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "Engine/LevelScriptActor.h"
#include "PlodeLevel.generated.h"

/**
 * 
 */
UCLASS()
class APlodeLevel : public ALevelScriptActor {
	GENERATED_BODY()
public:	
	APlodeLevel(const FObjectInitializer& initialiser);
	~APlodeLevel();
};	// eo class APlodeLevel



Here is exactly what I did to get it working:

  1. Find and use the ALevelScriptActor class under the Engine C++ folder.
  2. Right click it and create a new c++ child class.
  3. Then you can use Rama’s code in that child class and re-parent your current levels to be of the same class if you have any.

To re-parent go to the class settings (in the level blueprint) of any level new or old and under class options is the Parent Class option. From that you can select the class you want to use.

keyBITc.png

In that guide Rama also shows a way to re-parent from the file dropdown. To use that approach all you need to do is go to the level blueprint and it will be under file.