GUILayout: Mismatched LayoutGroup.repaint

Forums 💬 NodeCanvas 🗨️ General Discussion GUILayout: Mismatched LayoutGroup.repaint

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #13457
    nantianliao
    Participant

      Hello, what’s the reason for this?
      I just implemented a DOTween Action.
      Please give me a help, thx.

      [attachment file=”DOTweenNodeCanvas_20190304.unitypackage”]

      #13459
      nantianliao
      Participant

        An error message appears in the console when adding Action to the FSM.

        [attachment file=”FSM_20190305093504.png”]

        [attachment file=”Error_20190305093153.png”]

        #13458
        Gavalakis
        Keymaster

          Hello and sorry for the late reply due to website migration.

          This is happening because of this line of code in your OnCreate method:
          toGameObject = null;

          What is happening here is that you are setting the BBParameter field itself to null, instead of just it’s value, since the implicit operator in BBParameter can’t what of those two things you want to actually do.

          Having said that, you dont really need to do what you are doing in OnCreate though 🙂
          You can just declare the fields as normal, like for example:

          If you definetely need to do that OnCreate, you will need to make an explicit cast like this:

          toGameObject = (GameObject)null;

          But I really think that simply declaring the fields as eplxained above is better. (There is also no need of course at all if the values are the default ones like above.)

          Let me know if that works for you.
          Thanks

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