How to add AddComponent to Object

ukn47k
ukn47k
edited June 2022 in Fusion

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.

Best Answer

  • ukn47k
    ukn47k
    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? 😂😂

Answers

  • ukn47k
    ukn47k
    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? 😂😂