I’ve been watching some (admittedly older) YouTube tutorials on passing variables between blueprints, and I found a couple of methods to get the object node for a specific actor… The easiest I found was to create an editable variable in the calling blueprint, making an Object Reference to the actor, and then, using the eyedropper to select the specific actor to fill in the Default Variable.
Here’s an image so far:
Now, the tutorials I’ve watched (specifically this one, at 7:00: UE4 Blueprint Communication, Casting, Referencing Tutorial - YouTube) show this functionality pretty well, but I’m stuck when I try to do it, as it gives me an error that says “Editing this value in a Class Default Object is not allowed”. The eyedropper is greyed out, and I cannot select the object to create the reference.
I watched another tutorial (this one, at 12:00: - YouTube) which shows the method of selecting all actors of class, manually inputting the index, and setting the variable name to feed the Object Reference to select the specific actor. He comments that it’s “not the way you want to do it”, and never shows the way he would recommend - which I’m assuming is the first process I show above.
In investigating further, someone else who has this issue (link: Editing this value in a Class Default Object not allowed? - UE4 AnswerHub) seems to allude to the fact that the ‘easy’ functionality as above may have been deprecated in a later version of the Unreal Editor.
Can anyone comment on the above? Is this a change to the program rendering these old tutorials moot? Perhaps point me in the correct direction? I’d appreciate some input!
Thanks, in advance!