Resource for commonly used PC scripts?

Does anyone have a go-to GitHub repo or site for commonly used PlayCanvas scripts?

I find I use some of the same scripts, and it’s a little bit of a pain going through old projects to copy-paste and adapt the same script over and over. Are there any resources for finding commonly used scripts?

For example, a camera orbit script is something I need in almost every project. Or some projects a clickable point of interest marker is needed.

iirc @yaustar might’ve made something like that at one point, but if you search “awesome playcanvas” on GitHub, and you only find PlayCanvas’ official list—which is fine, but not really script focused.

The only other place I know is to go into the PlayCanvas engine and go through the scripts folder. I feel like PlayCanvas could make those scripts more easily accessible than hiding it in the engine repo, but regardless that’s the one good place I’ve found for sourcing reusable scripts: engine/scripts at main · playcanvas/engine · GitHub

What I’ve done previously is have a single project with all the scripts I typically use and I can use the Editor copy and paste feature to copy the asset to a new project (this works with folders too so I don’t have to do this one by one)

I do this because the scripts have been adapted for my own personal use and needs.

https://playcanvas.com/project/771878/overview/playcanvas-toolbox

The other place go to is the tutorials projects where I use the same Editor feature to copy between projects Tutorials | PlayCanvas Developer Site

1 Like

That’s smart, thanks!

The tutorials page is also new to me.