Announcement

Collapse
No announcement yet.

Define variable in another blueprint

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

    Define variable in another blueprint

    Hello,

    I wondered if it was possible to define a variable (text variable) in another blueprint.

    For example I have an open level function in a game mode which is used in every level.

    Now if instead of putting a name, I put a variable called "level name",

    Could I define that variable, the name, in for example the level blueprint of that current level?

    #2
    Hello,
    yes you can set a a variable in another blueprint. First you create a variable and select the blueprint you want to use as type. (or use a "actor from class" with the bp selected or any other way to have your parent actor)
    Then you drag a "cast" from it.
    From this one you drag the variable you want set.
    But this is for usual blueprints which are in a level blueprint. Level blueprints are not common blueprints. It needs to send your datas from a level to another one.
    Last edited by Fen; 09-07-2014, 04:14 PM.

    Comment

    Working...
    X