How to add AddComponent to Object
by topic
I created a player and wanted to add a BoxCollider component to it, but it didn't work. I've tried putting it in the RPC, but it still doesn't work. fusion is there a specific way for this?
My Example
GameObject G = Runner.Spawn(NetworkObject).gameObject;
G.AddComponent<BoxCollider>();
Thank you for answer😊😊
//Now I found that the problem is not with BoxCollider but with AddComponent. So I'll change the topic.
0
Best Answer
-
I have found a solution for this.
"RpcIvokeInfo" Hope this helps someone who is having the same problem as me.
Or is it just me? 😂😂
0
Answers
-
I have found a solution for this.
"RpcIvokeInfo" Hope this helps someone who is having the same problem as me.
Or is it just me? 😂😂
0