My "using" colors are blue, should be red

And when i press ctrl + . i dont get: using unity.notifications.android

Can someone pls help me with that?

Thank you.

Hello and Welcome to you :slight_smile:

Not sure about why your using should be red…

… but with your other query: you misspelt Notification (you forgot the middle i, as in AndroidNotif_cation)… could that be your problem?

oh…thank you:)
so the colors arent important?

I use Visual Studio, not Code, so I wouldn’t know if blue or red is the correct one… but form the screenshot it looks fine (exception the typo)

The colors in the usings clauses indicate which of the using clauses are directly relevant to your script. For example, we’re not using anything in Systme.Collections or System.Collections.Generic, so you can actually remove these usings clauses to speed up (a teeny tiny bit) compilation.

You’re trying to include an AndroidNotification (note the missing I), but you’re not including

using Unity.Notifications.Android;

in the using clauses, so the compiler doesn’t know what an AndroidNotificationHandler is. Adding in the Include should let you use the code correctly.

Privacy & Terms