Answers for "unity how to turn sprite renderer off and on in code"

C#
1

how to turn off sprite renderer in unity

public Renderer rend;

    void Start()
    {
        rend = GetComponent<Renderer>();
        rend.enabled = true;
    }
Posted by: Guest on November-07-2020

Code answers related to "unity how to turn sprite renderer off and on in code"

C# Answers by Framework

Browse Popular Code Answers by Language