Search Unity

Bug bonehandles.shader nullrefs

Discussion in 'Animation Rigging' started by laurentlavigne, Nov 4, 2022.

  1. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,362
    so, because constraints have a disallowmultiple I had to copy the package to a plugins folder and now i get nullrefs
    i've never used that EditorHelper.LoadShader, any idea why it doesn't find that shader? it's in there

    upload_2022-11-3_20-49-20.png

    upload_2022-11-3_20-48-49.png
     
  2. fleity

    fleity

    Joined:
    Oct 13, 2015
    Posts:
    345
    Just a thought as an alternative.
    1. Write a new editor window which uses the selection and which can edit multiple AnimRigging components or
    2. Inherit from the inspector editor / use reflection to create the corresponding default inspector but allow edit multiple?
    I don't get why these components are dissallowmultiple, makes no sense to me either, but in general I dislike localizing packages too much to go that way.
     
  3. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,362
    I'm with you on that, I'll just do
    MyNewClass:UnityClass
    , I think that bypasses the class attribute
     
    fleity likes this.