Git Product home page Git Product logo

puerts-unity-kit's People

Contributors

throw-out avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

puerts-unity-kit's Issues

Missing Modules

Hello!

Platform

  • Mac M2

Issue

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">

TSLoader question

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.

Custom Types

How can I render custom types created on Ts Side? examples only show how to render custom types created on C# side.

General Support Questions

  • Is it possible to GetComponent for components defined in Ts by extending Xor.TsComponent? ditto for AddComponent
  • Does serialization work for Custom data types? or does that need to be customized? Would it be possible to ask for a feature to add byte[] serialization which would allow us to serialize any TS types? And maybe use SerializeReference for default editor support?
  • I was reading in the docs that a TsComponent needs to be marked with Xor.Guid is this a manual process?
  • How does the TsComponent find scripts/modules? is the search path configurable? For example if my tsconfig lives under Assets/
  • Can modules be loaded Over the air? For example if I load a unity asset bundle with compiled scripts or have a zip file in s3 with compiled scripts?

Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.