Check if object is not null

Forums 💬 FlowCanvas ⚙️ Support Check if object is not null

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #21860
    smaton
    Participant

      Hi everyone,

      how can I check if an object is not null. For example, I want to access a component on a game object. Get Component gives me the result.

      But how do I check for null?

      In my test case, there is a SpawnAnimation script attached to my game object which also holds the FlowScript. I’ve added “SpawnAnimation” to the types and I call GetComponent on self. I want to check the result against null.

      Thanks for your help.

      #21862
      fweds
      Participant

        Hi,

        You can do like that :

        #21861
        smaton
        Participant

          Ok. Thanks… going to make a makro of this 🙂

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.