Changing Color while Disc GameObjcet is not active gives error

  • 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
Pinned replies
Freya Holmér
  • Answer
  • Fixed

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

Freya Holmér
  • Answer
  • Fixed

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

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.

Freya Holmér

it'll be released as 2.3.0 today!

Freya Holmér

aaaand it's now released~

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.

Freya Holmér

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