0
Answered

Comparing types

nrvllrgrs 3 years ago updated 3 years ago 2

Is there a method to compare types? For example if a cached component is of type NetworkBehaviour.

if (value is NetworkBehaviour)

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
Answered

Hi nrvllgrs! Sorry for the very late reply on this, I somehow missed your question.

I made an idea thread to keep track of this suggestion because it should be simple: https://support.ludiq.io/communities/5/topics/2154-is-unit-type-checking

But in the mean time, you can use this as a workaround:

  • Add Type to your Unit Options
  • Use this unit:

Do I need to add something to Assembly Options for that Unit to appear?