snozbot / fungus

An easy to use Unity 3D library for creating illustrated Interactive Fiction games and more.
MIT License
1.59k stars 291 forks source link

New Feature: Is Active and Is Inactive commands for game objects #1006

Open Arylos07 opened 3 years ago

Arylos07 commented 3 years ago

Description

Really simple. Added Is Active and Is Inactive commands that checks if a game object is active/inactive. Also has additional parameters on if it will ignore the parent (default) or not.

If the parent can be ignored, these commands use gameObject.activeSelf. If the parent is included (ignoreParent = false), these commands use gameObject.activeInHierarchy instead.

What is the current behavior?

Currently, there is no way to check if an object is active/inactive in Fungus. You can only set its state.

What is the new behavior?

Important Notes

Other information

Finally, a pull request that does not reference that accursed audio lerp fix.

Screenshot_40