How to sync with instantiated object?

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?

Syncing with an instantiated object is not supported. You need to either use a pool that enables existing objects, or reroute syncing through a non-instantiated object instead.

1 Like

oh, I don’t know that. Thank you for reply!