FSM on prefab

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8715
    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?

    #8717
    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! 🙂

    Join us on Discord: https://discord.gg/97q2Rjh

    #8716
    atmuc
    Participant

    ok. no problem 🙂

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