- Home /
'NetworkTranformChild' problem
Hi guys, I was trying to edit a player prefab for my multiplayer fps game, however when I try to save and to return to the main scene this red problem occours and, as a consequence, unity disables its saving function:
You are trying to replace or create a Prefab from the instance 'Player' that contains the script 'NetworkTranformChild', which does not derive from MonoBehaviour. This is not allowed.
so the question is, how can I resolve this problem so that i can finally save my edited prefab?
thank you for your help and time
ps: I'm using 2019.2.0f1 unity version
The answer is the actual answer to the problem but if you give me more specific information about what it is you are doing i can give you specific help.
Answer by sacredgeometry · Aug 10, 2019 at 11:20 AM
You cant add components to a GameObject unless they extend MonoBehaviour.
Your answer
Follow this Question
Related Questions
Unity networking tutorial? 6 Answers
Network.isServer / isClient not working 1 Answer
UNet changing player prefabs int the network lobby sample. 0 Answers
How can I spawn a GameObject on all players in my multiplayer game? 0 Answers
NetworkServer.dontListen not working - How do I stop clients connecting? 2 Answers