Check if layer is a light

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
ernpchan
Posts: 56
Joined: February 8th, 2010, 11:27 pm

How does one go about to check if a layer is a light?
ernpchan
Posts: 56
Joined: February 8th, 2010, 11:27 pm

Nevermind, I figured it out. Need to use matchName.
Dan Ebberts
Posts: 320
Joined: June 26th, 2004, 10:01 am
Location: Folsom, CA
Contact:

This should work:

if (myLayer instanceof LightLayer)


Dan
Post Reply