2D Toolkit Forum

2D Toolkit => Support => Topic started by: mr_malee on September 17, 2013, 03:00:35 am

Title: Sprite Visibility
Post by: mr_malee on September 17, 2013, 03:00:35 am
hey, just wondering if there's an easy way to set sprite visibility in 2d toolkit? I would still like my game object to be active.
Title: Re: Sprite Visibility
Post by: profanicus on September 17, 2013, 05:49:27 am
Yes, you can set the 'enabled' property on the sprite component.
Title: Re: Sprite Visibility
Post by: unikronsoftware on September 17, 2013, 10:07:33 am
Almost correct - its the mesh renderer you want to turn off here to turn of the rendering. .renderer.enabled = false will do the job.
Title: Re: Sprite Visibility
Post by: mr_malee on September 19, 2013, 07:34:31 pm
thanks