Hello
Guest
Home
Help
Search
Login
Register
2D Toolkit Forum
»
2D Toolkit
»
Support
»
Sprite Visibility
« previous
next »
Print
Pages: [
1
]
Author
Topic: Sprite Visibility (Read 6382 times)
mr_malee
2D Toolkit
Newbie
Posts: 12
Sprite Visibility
«
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.
Logged
profanicus
2D Toolkit
Full Member
Posts: 167
Re: Sprite Visibility
«
Reply #1 on:
September 17, 2013, 05:49:27 am »
Yes, you can set the 'enabled' property on the sprite component.
Logged
unikronsoftware
Administrator
Hero Member
Posts: 9709
Re: Sprite Visibility
«
Reply #2 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.
Logged
mr_malee
2D Toolkit
Newbie
Posts: 12
Re: Sprite Visibility
«
Reply #3 on:
September 19, 2013, 07:34:31 pm »
thanks
Logged
Print
Pages: [
1
]
« previous
next »
2D Toolkit Forum
»
2D Toolkit
»
Support
»
Sprite Visibility