Answers for "how to turn off and turn on spriterenderer unity"

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 "how to turn off and turn on spriterenderer unity"

C# Answers by Framework

Browse Popular Code Answers by Language