大约有 596 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0102 秒)
...up);//将 radioGroup 添加到显示列表。 } function onSelect(index) { console.log("当前选择的单选按钮索引: index= ", index); } example import Radio = laya.ui.Radio; import RadioGroup = laya.ui.RadioGroup; import Handler = laya.utils.Handler; class RadioGroup_Example { constructor() {...
来源: Laya3.0_api 发布时间: 20231115
...w Laya.Vector3(0,0,-1); Laya.timer.loop(2000, this, function(){console.log(rigidBody.linearVelocity.z)}); } } //激活启动类 new PhysicsWorldBaseCollider(); 2019-10-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...
来源: Laya_社区 发布时间: 20191009
...addChild(tab);//将 tab 添到显示列表。 } function onSelect(index) { console.log("当前选择的标签页索引: index= ", index); } example import Tab = laya.ui.Tab; import Handler = laya.utils.Handler; class Tab_Example { constructor() { Laya.init(640, 800);//设置游戏画布宽高。 Lay...
来源: Laya3.0_api 发布时间: 20231115
...process = exec("layaair2-cmd compile"); process.stdout.on("data",(data)=>{ console.log(data); }); process.stderr.on("data",(data)=>{ console.log(data); }); process.on("exit",(code,signal)=>{ console.log("success"); console.log(code,signal); cb(); }) } //创建一个名称为compile的gulp任务 task...
来源: Laya2.0_文档 发布时间: 20210715
...信 mobile3Dbin 赞同来自: 于LayaAir Export 时,在Unity 5.6.2f1 的 console.log 会收到下列的错误。似乎与.fbx的档案设定成Animationa Type : Generic 有关系。 某些角色的 Animator 中若Motion设定动作后,就一定会有这个错误。 KeyNotFoundException: The g...
来源: Laya_社区 发布时间: 20170428
...ject","budai"); budai.on(Laya.Event.CLICK,this,function() { console.log("点击了"); }); 这样不起作用呢
来源: Laya_社区 发布时间: 20180722
...in); } protected AroundByMobileInput(): void { if (this.TouchCount == 1) { console.log(this.targetAngles); this.targetAngles.y -= this.GetAxisX * this.mouseSettings.pointerSensitivity; this.targetAngles.x += this.GetAxisY * this.mouseSettings.pointerSensitivity; //Range. this.targetAngles.y = this.C...
来源: Laya_社区 发布时间: 20190224
...t;HTML文本</span>"; htmlDiv.innerHTML = html; htmlDiv.pos(50,200); console.log("文本的实际宽度为"+htmlDiv.contextWidth,"文本的实际高度为"+htmlDiv.contextHeight) Laya.stage.addChild(htmlDiv); 运行效果: 运行输出:文本的实际宽度为158.677734375 文本的实际...
来源: Laya3.0_文档 发布时间: 20230303
...in); } protected AroundByMobileInput(): void { if (this.TouchCount == 1) { console.log(this.targetAngles); this.targetAngles.y -= this.GetAxisX * this.mouseSettings.pointerSensitivity; this.targetAngles.x += this.GetAxisY * this.mouseSettings.pointerSensitivity; //Range. this.targetAngles.y = this.C...
来源: Laya_社区 发布时间: 20170714
... { function Client() { } Client.prototype.start = function () { // body... console.log("调用方法"); }; return Client; })(); console.log("我被加载进来了"); ``` 下面我们简单的讲解下这两段代码。 `var script = Laya.Browser.document.createElement("script");`创建一个script...
来源: Laya2.0_文档 发布时间: 20210714