playMaker

Author Topic: Compare Array not working properly  (Read 1551 times)

dubly94

  • Playmaker Newbie
  • *
  • Posts: 4
Compare Array not working properly
« on: December 30, 2023, 11:43:29 AM »
I'm working with two arrays, each containing three elements of the type GameObject. All elements in both arrays are set to 'None' (they’re empty). When using the 'Array Compare' action, neither the 'Sequence Equal' nor 'Sequence Not Equal' event is triggered. Instead, I encounter a 'NullReferenceException: Object reference not set to an instance of an object' error.

Given that the contents of both arrays are identical (all set to 'None'), I expect the 'Sequence Equal' event to be triggered. Is this a bug or am I missing something obvious? Thanks!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Compare Array not working properly
« Reply #1 on: December 30, 2023, 04:11:08 PM »
if set to none they will be Null therefor it will return a null reference error.