Search Unity

Question Effective workflow for creating multiple similar Prefabs

Discussion in 'Prefabs' started by yonicstudios, Mar 20, 2022.

  1. yonicstudios

    yonicstudios

    Joined:
    Jul 15, 2018
    Posts:
    7
    The game I'm working in has many doors with their own rig and their own animations, but they are not quite identical: Some vary in size and others in the way they open and close.

    My current workflow is like this:
    1. Export the mesh with the rig and animations to FBX
    2. Import the FBX asset and put it directly on the scene
    3. Add the necessary components (Animator, Collider and Scripts).
    It's a bit cumbersome to add the components every single time, and create a unique Animation Controller for every single door. So I thought about creating a prefab that could take the mesh and the animations as properties, but have a unique Animator Controller at most for each type of door (sliding, with a hinge, revolving), as well as the collider component and scripts built-in.

    But I'm not really sure how it would be possible in a way that would make it visible in the Scene view.
    Is this the best approach for making this, anyway?