Announcement

Collapse
No announcement yet.

Unable to set default variable instance

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

    Unable to set default variable instance

    Good evening guys,

    Not posted on here before so apologies for the dumb question (tried googling for the answer but couldn't find much insight)

    So I have created to BP actors, a box to power up and a door to open when the box is fully powered

    When I go into the door and create a variable type of the box, I get the message "editing this value in a class default object is not allowed" whenever I try to set its default value, however if I set it to instance editible I am able to then select the object from the viewport.

    Can anyone tell me where im going wrong with this please?

    Cheers

    #2
    Hey, you have to place your Door actor into the World, then select it and link it to the other Object you want.
    this happens because you want to Make a reference to an Actor and they only exist in the world.

    Click image for larger version  Name:	LinkActor.JPG Views:	1 Size:	363.3 KB ID:	1634665

    Comment


      #3
      Hi Caboose,

      Yes setting it as instance editable and selecting from the viewport and actor instance details tab is working, however I dont understand why it wont just let me set the same default value within the blueprint?

      I have attached some more screenshots

      Comment


        #4
        I want to get this result but without having to use it as a soft object ref

        Comment


          #5
          Hey again, with a soft ref you will have to use Async Load Asset. but I'm unsure why you want to use a soft reference only to have the ability to link it.
          same can be done by just doing it as I showed before.

          Click image for larger version  Name:	LoadObject.JPG Views:	2 Size:	75.8 KB ID:	1634867

          the way I would do it is to link it in the level and just reference it in the Bp.

          Click image for larger version

Name:	ObjectRef.JPG
Views:	491
Size:	56.7 KB
ID:	1634874
          Last edited by Caboose413; 06-24-2019, 08:46 AM.

          Comment

          Working...
          X