Help me access to another actor blueprint

I have 2 actors, one is MyGameMode and other is Datacenter.
In Datacenter i create some variables like this :


And then from MyGameMode blueprint, i’m using “Get All Actors of Class” to get variables from Datacenter like this :

But “Print (String)” showing nothing from Out Actors array output pin of “Get All Actors of Class” node. That’s mean i did not get anything in output array, so, can someone tell me what did i wrong here ? How can i access and modify variables in Datacenter from MyGameMode blueprint ?
Help me, please.
p/s : this’s DatacenterRef variable detail.
6s89

1 Like

Did you put the datacenter BP somewhere in the level?

( otherwise there isn’t one to find )

1 Like

Yes, i put Datacenter actor into level, but it still not showing any thing from “Print (String)”
s6
My level blueprint is not have anything in event graph so i tried to put Datacenter actor into my level blueprint too, still not have any change.

As in DatacenterRef variable detail, i saw my variable default value is None. How can i change this value ? Should i change it ?

You should put the data centre type directly in here

not take it from the variable. ( especially if the variable is not pointing at anything :wink: )

1 Like

Thanks a lot bro, i passed it.
But when i using that variable, i thought i could using that for get variables in Datacenter out to using, then i can upgrade them and saving those variables back to Datacenter.
Is necessary to using it or i can saving those variables back to Datacenter without DatacenterRef variable in MyGameMode ?

You can use a datacenter reference to update a datacenter instance.

But the reference needs to point to an actual datacenter object.

When you do ‘get actor of class’ it gives you a datacenter reference. You can use that.

1 Like

thanks bro, i’ll try that

1 Like