FollowerEntity - setting RVO to locked?

I’m not overly familiar with ECS, but I do understand it uses structs and we can’t access properties willy nilly. How can we set the RVO in follower entity to locked? Are there some practices we should follow when working with these?


You can set

followerEntity.rvoAgent.locked = true;

I tried doing that, but as it’s a struct it didn’t let me and threw an error.

Right. That should probably be a ref return.

You can do:

var x = followerEntity.rvoAgent;
x.locked = true;
followerEntity.rvoAgent = x;