what npm thing?
it is without dependencies
just create a new ts file and paste it in there.
npm definition
by user 263967078346653697
A c# component is automatically generated
you dont need it if you dont want it
oh okay
by user 263967078346653697
thanks!
by user 263967078346653697
Then just put it in src/scripts
in your web project
ye ok thanks so much for helping meβ¦
by user 263967078346653697
npmdefs are great for code sharing and org but you dont have to use them (npmdef is just our madeup term for a package that can be published to npm, itβs basically just a regular npm package but made visible to Unity)
Youre welcome. If youre familiar with c# and Unity dev youβre more than capable of producing code for the web with typescript. It has some things to learn but definitely doable (speaking from experience haha)
Oh maybe worth noting: you can context click on existing c# scripts and generate βstubβ typescript components. They wonβt contain the whole logic but they should be helpful and maybe useful for learning the syntax
ty marcel that has to be helpful
by user 263967078346653697
heyo um
by user 263967078346653697
So i made a separate script using the code you provided
by user 263967078346653697
put it in src of my build
by user 263967078346653697
by user 263967078346653697
looks good here
by user 263967078346653697