Changing Color while Disc GameObjcet is not active gives error

Avatar
  • updated
  • Fixed
private Disc _disc

public void something() {
_disc.SetActive(false)
_disc.ColorOuter = Color.Red
}

When you try to change the color of the component while the object is Not Active, it returns a null reference. Is there a reason for this?

Reporting a bug? please specify Unity version:
2020.1.2f1
Reporting a bug? please specify Shapes version:
Shapes 2.0.0
Reporting a bug? please specify Render Pipeline:
Pinned replies
Avatar
Freya Holmér creator
  • Answer
  • Fixed

this has now been fixed in 2.2.1, thanks for the report!

Avatar
Freya Holmér creator
  • Answer
  • Fixed

this has now been fixed in 2.2.1, thanks for the report!

Avatar
Dan

Where can I get 2.2.1?  It looks like the latest version is 2.2.0 even though it has been 3 weeks.

Avatar
Freya Holmér creator

it'll be released as 2.3.0 today!

Avatar
Freya Holmér creator

aaaand it's now released~

Avatar
Dan

Thanks.  That fixed all the errors I was getting.

For some reason importing the shapes package imports a bunch of other packages like ads and analytics.  But that's another issue.

Avatar
Freya Holmér creator

yeah the asset store package manager dependency finder is just, really weird like that unfortunately :c