• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 596 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0148 秒)

581. laya.ui.RadioGroup_API3.0 [ 41%]

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

582. rigidBody.applyForce 对刚体应用力,物体没有移动 [ 41%]

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

583. laya.ui.Tab_API3.0 [ 41%]

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

584. VSCode高效开发工作流配置指南(TypeScript-IDE篇(TS)-代码模式基础) [ 41%]

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

585. LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) [ 40%]

...信 mobile3Dbin 赞同来自: 于LayaAir Export 时,在Unity 5.6.2f1 的 console.log 会收到下列的错误。似乎与.fbx的档案设定成Animationa Type : Generic 有关系。 某些角色的 Animator 中若Motion设定动作后,就一定会有这个错误。   KeyNotFoundException: The g...

来源: Laya_社区 发布时间: 20170428

586. 请问object层中添加的sprite怎么添加点击事件 [ 40%]

...ject","budai"); budai.on(Laya.Event.CLICK,this,function() { console.log("点击了"); }); 这样不起作用呢

来源: Laya_社区 发布时间: 20180722

587. 官方案例里摄像机绕物体旋转脚本的问题 [ 37%]

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

588. HTML文本 · LayaAir3.0文档 · LAYABOX [ 35%]

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

589. 3D中摄像机绕物体旋转该如何实现? [ 33%]

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

590. LayaAir和原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 32%]

... { function Client() { } Client.prototype.start = function () { // body... console.log("调用方法"); }; return Client; })(); console.log("我被加载进来了"); ``` 下面我们简单的讲解下这两段代码。 `var script = Laya.Browser.document.createElement("script");`创建一个script...

来源: Laya2.0_文档 发布时间: 20210714