#What does this unity method do

1 messages · Page 1 of 1 (latest)

little shuttle
#

IsActiveAndEnabled

#

Should it not, check if it is active, that's it?

solemn wraith
#

google it

left shell
#

Was it that hard to google it?

little shuttle
#

Maybe : P

solemn wraith
#

what website is this 💀

little shuttle
#

The one he sent

surreal river
#

wtf

left shell
#

public bool isActiveAndEnabled;
Description

Reports whether a GameObject and its associated Behaviour is active and enabled.

A GameObject can be active or inactive. Similarly, a Behaviour can be enabled or disabled. If a GameObject is active and has an enabled behaviour then isActiveAndEnabled will return true. Otherwise false is returned.
Note: value is ReadOnly.
To determine whether GameObject is active, isActiveAndEnabled uses the equivalent of activeInHierarchy.

#

there.

little shuttle
#

Thanks 😄