throw-out / puerts-unity-kit Goto Github PK
View Code? Open in Web Editor NEW使用typescript开始你的unity项目(基于puerts的项目模板). 在ts中使用Unity生命周期方法丶绑定ts脚本并序列化其成员丶在ts中使用多线程实例等功能.
License: Other
使用typescript开始你的unity项目(基于puerts的项目模板). 在ts中使用Unity生命周期方法丶绑定ts脚本并序列化其成员丶在ts中使用多线程实例等功能.
License: Other
If you have multiple .ts files each being its own component it will only render the first one it finds and only show that type.
Hello!
When I try to compile the TsProject
I get an issue with undici-types
not being found. If I change the moduleResolution
to node
it works but then the project throws an error in unity:
Error: Debug Failure. Unexpected moduleResolution: Node
at Object.e.resolveModuleName (puerts/xor-editor/child.cjs:2:2007963)
at fe (puerts/xor-editor/child.cjs:2:3194758)
at S (puerts/xor-editor/child.cjs:2:3178834)
at ne (puerts/xor-editor/child.cjs:2:3194839)
at ze (puerts/xor-editor/child.cjs:2:3221816)
at et (puerts/xor-editor/child.cjs:2:3224476)
at Xt (puerts/xor-editor/child.cjs:2:3244795)
at puerts/xor-editor/child.cjs:2:3240266
at kt (puerts/xor-editor/child.cjs:2:3240303)
at puerts/xor-editor/child.cjs:2:3237328
UnityEngine.Debug:LogError (object)
XOR.Logger:LogError (object,object[]) (at Assets/XOR/Runtime/Src/Logger.cs:84)
XOR.ThreadWorker:ProcessChildThreadMessages () (at Assets/XOR/Runtime/Src/Thread/ThreadWorker.cs:411)
XOR.ThreadWorker:ThreadExecuteTick (Puerts.JsEnv,bool) (at Assets/XOR/Runtime/Src/Thread/ThreadWorker.cs:306)
XOR.ThreadWorker:ThreadExecute (string,bool) (at Assets/XOR/Runtime/Src/Thread/ThreadWorker.cs:249)
XOR.ThreadWorker/<>c__DisplayClass48_0:<Run>b__0 () (at Assets/XOR/Runtime/Src/Thread/ThreadWorker.cs:101)
System.Threading.ThreadHelper:ThreadStart ()```
<img width="360" alt="Screenshot 2023-11-30 at 8 36 51 AM" src="https://github.com/throw-out/puerts-unity-kit/assets/108297275/a022a6bd-f468-40e3-bf51-bcdfed12cdf8">
Hello again!
I am getting back into setting up this package and part of my research is https://github.com/zombieyang/puerts-ts-loader the nice thing about the ts loader package is it allows to deal with modules in a more unity way which is preferable. I was wondering if it would work out of the box since I know for TsComponent searching for modules is based on settings and a background thread worker.
How can I render custom types created on Ts Side? examples only show how to render custom types created on C# side.
GetComponent
for components defined in Ts by extending Xor.TsComponent
? ditto for AddComponent
SerializeReference
for default editor support?TsComponent
needs to be marked with Xor.Guid
is this a manual process?TsComponent
find scripts/modules? is the search path configurable? For example if my tsconfig lives under Assets/
Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.