- Home /
Question by
vladtehnik · Dec 26, 2019 at 04:36 PM ·
gameobjectnetworkingnetworksetactive
Simple activation network script
Hello ! I am currently struggling with Unity networking and I don't understand how it works, even if I have tried working with it and reading about it. Maybe a little, basic networking script would work ?
So, I want to activate an object across the network. Let's say I have a simple script:
public GameObject Object;
public void Update()
{
if(Input.GetKeyDown(KeyCode.W))
{
Object.SetActive(true);
}
}
What shoud be done ? Are both Commands and ClientRPC's necessary for this to work ?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612220646im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Problems with Network.destroy 1 Answer
NetworkReader/Writer with GameObject 0 Answers
[Command] tag not working 0 Answers
Non player objects movements are not syncronized on server 0 Answers
How to synchronize GameObjects 2 Answers