UnityTimer icon indicating copy to clipboard operation
UnityTimer copied to clipboard

Timer does not exist in the current context

Open omundy opened this issue 3 years ago • 1 comments

I tried installing from UPM, adding the remote .git as a package, and downloading the package and each time I was unable to run any demos. I looked in the source and can't figure out why since its a static class with an extension?

Unity 2021.2.7f1

image

image

image

omundy avatar Jan 28 '22 19:01 omundy

Adding the namespace only works if you download / install the package manually.

using UnityTimer;

However, when I try with UPM or adding the Git URL to the package manager VS does not recognize Timer or UnityTimer.

UPDATE: In order to use a package from either UPM or the Git URL, open Unity > Preferences > External Tools and check Registry Packages | Git Packages and click Regenerate Project Files:

image

This is not so much an issue with the project as a suggestion to improve the documentation.

omundy avatar Jan 29 '22 13:01 omundy