Describe the bug in detail:
When OnOwnershipTransferred(VRCPlayerAPi owner_player) is called,"owner_player" is inputed to "player" variable.
then, "onwer_player.playerId" is inputed to "player_id" variable.
(player & player_id variable is member variable of the class that call the OnOwnershipTransferred(). )
But, In LateUpdate() , "player" variable show null. player_id is not null.
May be my code is wrong simply.
Provide steps/code to reproduce the bug:
[UdonBehaviourSyncMode(BehaviourSyncMode.Manual)]
public class JoinToGame : UdonSharpBehaviour
{
[SerializeField] PlayerStatusCollision psc;
[SerializeField] TextMeshProUGUI dtext;
[UdonBehaviourSyncMode(BehaviourSyncMode.Manual)]
public class PlayerStatusCollision : UdonSharpBehaviour
{
public int player_id;
public VRCPlayerApi player;
[SerializeField] TextMeshProUGUI dtext;
Describe the bug in detail: When OnOwnershipTransferred(VRCPlayerAPi owner_player) is called,"owner_player" is inputed to "player" variable. then, "onwer_player.playerId" is inputed to "player_id" variable. (player & player_id variable is member variable of the class that call the OnOwnershipTransferred(). ) But, In LateUpdate() , "player" variable show null. player_id is not null.
May be my code is wrong simply.
Provide steps/code to reproduce the bug:
[UdonBehaviourSyncMode(BehaviourSyncMode.Manual)] public class JoinToGame : UdonSharpBehaviour { [SerializeField] PlayerStatusCollision psc; [SerializeField] TextMeshProUGUI dtext;
}
[UdonBehaviourSyncMode(BehaviourSyncMode.Manual)] public class PlayerStatusCollision : UdonSharpBehaviour { public int player_id;
public VRCPlayerApi player; [SerializeField] TextMeshProUGUI dtext;
}
Expected behavior: What was the excepted result?
Additional Information: Provide any additional information here.