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"

Is there any way to inherit some level blueprint functionality to another level?

I am new at Unreal and i have a project in mind i would like to implement. My issue here is that i will have lots of levels with similar behaviour (i mean basically the same blueprint code) and i dont see any way to make a level "inherit" behaviour from another level, also, different from game instances and player controllers, where i create a blueprint that i can reference later, levels cant be "referenced" in other levels (example, if i create a level instance of a level caled "MyLevel", the object returned is a Kismet Level Streaming, wich i can't cast to a "MyLevel" object, even thought is defined by a blueprint)

Is there any way i can achieve this kind of implementation, without having to copy blueprint code to every single level i create?

Product Version: UE 4.18
more ▼

asked Apr 03 '18 at 01:44 AM in Blueprint Scripting

avatar image

1 1 2 2

avatar image Dune Apr 04 '18 at 09:51 AM

It isn't an exact solution, but create an Actor BP you can put into each level, called Level Initialiser or something? Have that parent a set class and then create childen for each level and place on in each. Then on the begin play of those actors, do your stuff. You could even call an 'Init' function from the BeginPlay of each level blueprint on the instance in that level.

Again, not an exact solution but more of a work-a-round.

avatar image gk0r Apr 04 '18 at 02:19 PM

What is the real world problem you are trying to solve? Ideally, you should not have any code in your Level Blueprint at all. There are some exceptions, but by the time you work out what they are, you would not be asking questions like this.

For now, imagine there is not such thing as level blueprint. How would you get that functionality in other ways?

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

1 answer: sort voted first
more ▼

answered Apr 03 '18 at 01:49 AM

avatar image

Planning Fallacy

(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