docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Field PlayerPrefab

    The default player prefab

    Namespace: Unity.Netcode
    Assembly: solution.dll
    Syntax
    [Tooltip("When set, NetworkManager will automatically create and spawn the assigned player prefab. This can be overridden by adding it to the NetworkPrefabs list and selecting override.")]
    public GameObject PlayerPrefab
    Returns
    Type Description
    GameObject
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)