Search Unity

Resolved Sprite Resolver SetCategoryAndLabel not doing anything?

Discussion in 'Scripting' started by RealMcCoyGames, Jul 20, 2021.

  1. RealMcCoyGames

    RealMcCoyGames

    Joined:
    Jul 23, 2018
    Posts:
    65
    Any idea why this isn't working?

    It doesn't throw any errors, and the category and label are correct.

    I'm doing something similar to this elsewhere and that's working fine

    Code (CSharp):
    1. public UnityEngine.U2D.Animation.SpriteResolver eyesSpriteResolver;
    2.  
    3. void Start() {
    4.  
    5.    eyesSpriteResolver.SetCategoryAndLabel("Eyes", "Eyes03");
    6.  
    7. }
     
    Last edited: Jul 21, 2021