FSM on prefab

  • This topic has 0 replies, 2 voices, and was last updated 11 years ago by Gavalakis.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #14423
    atmuc
    Participant

      i have a prefab with FSM. when i use Transform or GameObject reference from scene object i loose them if i run or build project. i can set my scene references to Global Blackboard and can use these in prefabs. is there any restriction to use scene references in prefab FSM actions?

      #14425
      Gavalakis
      Keymaster

        Hello,

        Yes. It’s a Unity restriction actually, which is that you can’t reference Scene objects within Asset objects. So you have reference a GameObject for example in a prefab FSM.
        The way to work around this, is indeed by using Scene Global Blackboards.

        Cheers! 🙂

        #14424
        atmuc
        Participant

          ok. no problem 🙂

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