- 🔭 A game developer
ialex32x / duktape-unity Goto Github PK
View Code? Open in Web Editor NEWprovide typescript support for unity dynamic scripting
License: MIT License
provide typescript support for unity dynamic scripting
License: MIT License
很看好这个项目
ts开发效率非常高
希望有联系方式求交流
作者请建个qq群吧
//c#
class B {}
class A {
B[] b_array;
}
比如这段代码,将A与B导出后A的ts声明:
class A {
b_array: B[]
}
看起来没啥问题,但是如果去获取b_array的数据时会崩溃,Editor直接闪退了
Promise support
Here's a high performance timer https://github.com/wahern/timeout
without coroutine
匿名函数无法调试
不在js中new的对象将不经过constructor,改用一个临时属性getter处理此逻辑;
提供h5一般使用方式近似的接口
duk_get_delegate
尝试直接在unity console中输出经过sourcemap解析的stacktrace信息
目前使用的都是
GameObject.Find("xxx")
这样的方式来找一个GameObject。
如何在js里面,自动获取GameObject呢,就像挂在GameObject上的c#脚本
扩展方法的参数索引 parameter.Position - 1
js 中通过 try/catch 捕获到 c# 中通过 duk_error 产生的异常后, 在 catch 中间接调用 c# 方法会导致 unity 崩溃
type.GetEvents()
.EventHandlerType
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.