AllSpawnForCurrent
Namespace: SynicSugar.P2P
Class: SynicObject
public static List
public static List
public static List
public static List
public static List
Description
Generate GameObjects, then set UserIDs of all members in current session to each NetworkPlayer.
If original prefab has many components, this is heavy.
using SynicSugar.P2P;
using UnityEngine;
public class p2pSample {
[SerializeField] GameObject playerPrefab;
void ObjectSample(){
SynicObject.AllSpawnForCurrent(playerPrefab);
}
}