Paths and new prefab system

Slate Forums Support Paths and new prefab system

Tagged: ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #2060
    shadston
    Participant

    Hey,

    I want to use paths in my cutscene, but how should I store them? New prefab system forces me to open cutscene first and then modify it, but when prefab edit mode is open I cannot access path gameobject. Is there any workaround?

    #2061
    Gavalakis
    Keymaster

    Hello again 🙂

    When you open a prefab for editing, you are actually editing the “prefab asset” itself. When you edit a prefab asset (or any asset for that matter), it can not hold scene object references as usual anyway (that is a Unity thing). So even if you were able to edit the prefab asset directly without opening it up in the prefab editor, you would still not be able to reference scene objects like Paths are.

    What you want to do instead, is simply edit the “prefab instance” that is in the scene directly, without opening it up in the prefab editor. This will of course “override” the master prefab asset, but this is generally speaking how Unity works 🙂
    Once again, assets (like prefab assets) can not have scene object references anyway. You can of course if you want, make the Paths part of the prefab if that fits your workflow.

    Please let me know if that helps.
    Thanks! 🙂

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

    #2062
    shadston
    Participant

    In the end I came to this same conclusion and I just put them inside the prefab, but since I couldn’t do it in prefab edit mode I felt like it couldn’t be achieved. It would be nice to make it possible in prefab edit mode or add some kind of note how to make it work 😉

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