Announcement

Collapse
No announcement yet.

Get Level an Actor is in?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Get Level an Actor is in?

    Hello,

    Since UE4 tends to not give actors unique names, i ended up with a lot of duplicated names, which makes it impossible to identify a specific actor at all.

    in C++ there is "GetLevel", but not in Blueprint, which means i cant get the Level the actor is in, if multiple are loaded and none can be unloaded currently.

    I cant give them Tags or IDs either, since i cant identify the level they belong to in the first place.

    Any ideas?

    Thanks.
    Last edited by Yaeko; 08-08-2018, 08:03 PM.

    #2
    i think you can actually give BPs tags :/ ...

    Comment


      #3
      Select the Blueprint in the Content Browser and open it in the Reference Viewer "Alt+Shift+R". Look for any maps on the left side of the Blueprint type.

      Comment


        #4
        There is a GetCurrentLevelName available in Blueprint.

        https://api.unrealengine.com/INT/Blu...ame/index.html
        Last edited by White_Rose; 08-09-2018, 11:50 AM.

        Comment


          #5
          thanks for the replies, but that wasnt what i meant, but i solved it by replacing the objects that had duplicated names.

          I meant: when the game is running, not in editor - thats easy.

          Comment

          Working...
          X