Emit a warning when trying to set ReplicationFocus on the client

I’m fairly new to using content streaming (StreamingEnabled) and I encountered what I thought was a bug:

It turns out that I was setting ReplicationFocus on the client when it should be set on the server. In my defense, I thought it didn’t matter where this was set since players can call RequestStreamingAroundAsync arbitrarily anyway.

Anyway, it would be good if attempting to set this property from the client emitted a warning in the output so that this programming mistake can be detected easier in the future.


Originally I had thought that you can do RequestStreamAroundAsync from the client, but it turns out that I was wrong about that, too!

Maybe RequestStreamAroundAsync should also emit a warning when called from the client.

1 Like