docs.unity.cn
    Show / Hide Table of Contents

    Adding machines to prefabs

    Note
    For versions 2019/2020 LTS, download the visual scripting solution from the Unity Asset Store.

    There is full prefab support for every type of graph except for embed graph prefab instances created in the editor.

    Prefab Instance Macro Embed
    Created in editor
    Instantiated at runtime

    If you use a machine with an embed graph as a prefab, the edits made on the prefab definition are automatically propagated to the prefab instances. Visual scripting displays warning messages in the inspector and in the graph window when this is attempted.

    Note: When adding a machine to a prefab, use a graph instead of an embed.

    Prefab Overrides

    Visual scripting uses a custom serialization engine, FullSerializer, rather than Unity's default serialization to satisfy it's requirements on nesting, extensibility and coverage.

    Note: When bolding inspector labels and values, the prefab indicates differentiation rather than override. For example, an inspector field on a prefab instance is never be bolded if it has the same value as the prefab definition, even if it has overridden this value.

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 11 March 2021