Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

How to pin a 2d sprite to NetworkManager MLAPI

Discussion in 'Netcode for GameObjects' started by arzhanovsky, Apr 6, 2021.

  1. arzhanovsky

    arzhanovsky

    Joined:
    May 20, 2019
    Posts:
    2
    Hello. How can I assign my 2d sprite to NetworkManager MLAPI. Moreover I cannot assign it at all.Please help.Thanks
     

    Attached Files:

  2. luke-unity

    luke-unity

    Joined:
    Sep 30, 2020
    Posts:
    306
    You first have to create a prefab with a SpriteRenderer component, assign your sprite to the sprite renderer and then assign that prefab to the NetworkManager.
     
    arzhanovsky likes this.
  3. arzhanovsky

    arzhanovsky

    Joined:
    May 20, 2019
    Posts:
    2
    Thank You very much!