Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

BatonProperty 1 level object set through Room Console not updating

Avatar

Level 3

Hello,

I created a BatonProperty and set a 1 level object for it in Room console.

I can retrieve this value fine, but I am unable to change it, even with OWNER permission, any tips please? Here is the code:

trace ("BATON SYNC"+baton_game.value.state);

//This retrieves the value fine before trying to change it

// After taking ownership of the Baton I call:
baton_game.value.state="STARTED";

trace ("BATON SYNC"+baton_game.value.state);

//This retrieves the new value fine after sync

But when I look at the room console, the value is unchanged. How is that possible? I tried this even with OWNER permission,

2 Replies

Avatar

Former Community Member

Hi there,

Did you wait for the value to round-trip through the service? You should

get a CHANGE event indicating it's changed.

nigel

Avatar

Level 3

Thanks Nigel, yes in the debugger I received the correct value, but not in the room console.

Anyway, I deleted the persistent item from the Room console and will handle it from the client side.

I am going quick and dirty here Kind of like Google Chrome