Scroll Timeline issue

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 :slightly_smiling_face:

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 :slightly_smiling_face:

using this option

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

Screenshot_20.png

by user 263967078346653697

looks good here

by user 263967078346653697