Dear developers,
I have a custom c++ class (called CameraTop) which inherits from ACameraActor, located inside a plugin named VoRCharacterVisit.
This plugin has 2 modules : VoRCharacterVisit (type Runtime, with the CameraTop class) and VoRCharacterConfigurator (type Editor ).
I’ve modified the CameraTop Class in order to add some editor features. Now i want to move the CameraTop Class from the VoRCharacterVisit module into VoRCharacterConfigurator module.
Issue :
A Blueprint asset, named CameraTop, inherits from the CameraTop C++ class, and i can’t succeed to do a classredirection, so my BP CameraTop has a invalid parent when i want to move my base c++ class CameraTop into the VoRCharacterConfigurator module.
What i tried :
I’ve added these lines in my DefaultEngine.ini :
[CoreRedirects]
+ClassRedirects=(OldName="CameraTop",NewName="/Script/VoRCharacterConfigurator.CameraTop")
As it doesn’t seem to work, i tried with more “precise” info
+ClassRedirects=(OldName="CameraTop", NewName="/Script/VoRCharacterConfigurator.CameraTop")
+ClassRedirects=(OldName="/Script/VoRCharacterVisit.CameraTop", NewName="/Script/VoRCharacterConfigurator.CameraTop")
+ClassRedirects=(OldName="VoRCharacterVisit.CameraTop", NewName="/Plugins/VoRCharacterConfigurator.CameraTop")
I tried to put these lines inside a new config file : /Game/Config/VoRCharacterVisit.ini
I’ve added the MODULE_API define in my class declaration
UCLASS()
class VORCHARACTERCONFIGURATOR_API ACameraTop : public ACameraActor
I’m able to open/edit the faulty Blueprint, even with the Warning of invalid parent, but once the edit window is open, i cannot reparent blueprint from the File menu : CameraTop isn’t in the list. That said, i’m able to create a new blueprint with my VoRCharacterConfigurator.CameraTop as parent.
I had no issue doing activeclassredirect in version UE 4.18, but since i must use the [CoreRedirects] in 4.20. I cannot succeed to make this redirection.
- Is there a issue with my naming ? Plugin and module names are similar
- Is it possible to do a +classRedirect from one module to another in the same plugin ?
I’m working with a custom rocketBuild based on 4.20.3, and doing my testing with a DebugGame Editor built from VS 2017.
Any ideas or suggestions is welcome.
Thanks in advance