Hi, I try to sync properties with instantiated object. But, It is not working.
public class PlayerStatus : UdonSharpBehaviour
{
.
.
.
[UdonSynced] private float _hp;
public float HP { get => _hp; }
.
.
.
}
When game started, Client is create ‘PlayerStatus’ objects for all players. And set owner each object. PlayerStatus’s Synchronization Method is ‘Manual’.
I call RequestSerialization() every single time when ‘hp’ changed. But it is not working. How can i fix this?