Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OnPreSerialization not called after RequestSerialization() #74

Open
MyroG opened this issue Mar 20, 2023 · 1 comment
Open

OnPreSerialization not called after RequestSerialization() #74

MyroG opened this issue Mar 20, 2023 · 1 comment

Comments

@MyroG
Copy link

MyroG commented Mar 20, 2023

The code bellow doesn't display "OnPreSerialization" in the console after "ToggleOpenState" is triggered

public void ToggleOpenState()
{
    if (!Networking.IsOwner(gameObject))
    {
        return;
    }

    Debug.Log("ToggleOpenState"); //this shows up in the console
    RequestSerialization();
}

public override void OnPreSerialization()
{
    Debug.Log("OnPreSerialization");  //this doesn't show up in the console
}

It work in-game, but not on ClientSim.

@mimyquality
Copy link

VRChat now keeps the latest Udonsync value from the Owner on the server side. This means that even if there is only one person in the instance, the RequestSerialization() will be accepted and a series of serialization processes will be performed.
It makes sense for ClientSim to emulate this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants