Page 1 of 1
Check if layer is a light
Posted: December 13th, 2011, 6:36 pm
by ernpchan
How does one go about to check if a layer is a light?
Re: Check if layer is a light
Posted: December 13th, 2011, 6:51 pm
by ernpchan
Nevermind, I figured it out. Need to use matchName.
Re: Check if layer is a light
Posted: December 13th, 2011, 6:53 pm
by Dan Ebberts
This should work:
if (myLayer instanceof LightLayer)
Dan