Hi
Sorry, my english is not very good. But I think, you understand me.
I want to spawn a player.
I have a client project and a server project.
Client:
function Start(){
Network.Connect("127.0.0.1", 25000, "pass");
}
Server:
function Start(){
Network.InitializeSecurity();
Network.incomingPassword = "pass";
Network.InitializeServer(4, 25000);
}
var player1 : Transform;
function OnPlayerConnected(player: NetworkPlayer){
Network.Instantiate(player1, new Vector3(1, 0, 1), Quaternion(0,0,0,0), 0);
}
player1 is a prefab (yes, with a networkView component). This prefab is in both projects, same name and in the same folder.
Client errors:
- Network.Instantiate on the receiving client failed because the asset couldn’t be found in the project
- View ID AllocatedID: 1 not found during lookup. Strange behaviour may occur
- Received state update for view id’ AllocatedID: 1’ but the NetworkView doesn’t exist
No errors on server. The player spawns and I can move it.
Can somebody help me please?
Why can’t unity3d find the prefab?
Thx