Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to turn off sprite renderer in unity

 public Renderer rend;

    void Start()
    {
        rend = GetComponent<Renderer>();
        rend.enabled = true;
    }
 
PREVIOUS NEXT
Tagged: #turn #sprite #renderer #unity
ADD COMMENT
Topic
Name
4+9 =