Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.


I had a graphics script where it shows the player models to other players but not to the player itself...but it is not working anymore for some reason, maybe because of it being an old photon script but it was working so I am not so sure...


Script 1:

public GameObject Graphics


Script 2:

GameObject pl = Instantiate(Player);
pl.GetComponent<PlayerNetwork>().Graphics.SetActive (false);

Share this post

Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

The snippets you posted has nothing to do with photon. It's possible that pl doesn't have the component attached. Before you assume it is, you might wanna double check. If it is, then check to make sure Player is assigned. If everything is assigned, then possibly Geaphics may be a reserved class now so change Graphics to gfx or something. If none of that solved it, then we can't help you out without knowing the error

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now