x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

BP inheriting from C++ class which inherits from Pawn is losing its parent

I have a problem where my blueprint keeps losing its parent.

I have the following structure in project:

 GameMode (Engine) <-- RTS2GameMode (C++) <-- RTS2GameModeBP (BP)
 Pawn (Engine) <-- PlayerCamera (C++) <-- PlayerCameraBP (BP)
 PlayerController (Engine) <-- PlayerCameraController (C++) <-- PlayerCameraControllerBP (BP)
 MovementComponent (Engine) <-- CameraMovementComponent (C++)

PlayerCamera has an instance of CameraComponent and CameraMovementComponent. Project's default gamemode is RTS2GameModeBP and the default pawn is PlayerCameraBP and default player controller is PlayerCameraControllerBP.

When I open the project in editor PlayerCameraBP loses its parent and it can't be opened.

This is the error I get when I try to open PlayerCameraBP:

This is what the tooltip says when I hover over PlayerCameraBP:

If I remove PlayerCameraBP and recreate it the same thing happens after I restart the editor. I'm using engine version 4.7.6 but I also tested it with 4.8 preview 1 and it did not fix the issue.

Here is a download link to the project if anyone wants to take a look.

Product Version: Not Selected
Tags:
rts2.zip (473.3 kB)
more ▼

asked May 10 '15 at 05:28 PM in C++ Programming

avatar image

Syneh
26 1 2 6

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hello, Syneh

I am sorry to hear about your issue. It is most likely that it occured when you upgraded the Engine to the next version. To prevent it, please do the following:

First, please make a copy of blueprint in an old project (the one that worked). After this, reparent the Blueprint to different class (in the Blueprint Editor, select File - Reparent Blueprint).

Then, copy the Blueprint to a new project and reparent it to the appropriate class (APlayerCamera).

Hope this helped!

Have a great day!

more ▼

answered May 11 '15 at 01:46 PM

avatar image

Andrii Melnyk
1.9k 60 19 112

avatar image Syneh May 11 '15 at 02:14 PM

I made a backup of my project before I upgraded it. I tested it on 4.8 just to see if it was fixed in that but it was not. I'm using the original project on 4.7.6 at the moment (The download is also for 4.7.6).

Also I can't reparent the blueprint because it is not openable (I get the error on the first image).

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question