大约有 2,657 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0053 秒)
Laya_社区(2027) Laya3.0_api(163) laya_api(112) Laya2.0_api(107) Laya2.0_文档(82) Laya_示例(68) Laya2.0_示例(51) Laya3.0_文档(47)
..., 20, -30), false); camera.addComponent(CameraMoveScript); scene.once(Laya.Event.HIERARCHY_LOADED, this, function () { setCustomMaterial(scene.getChildAt(2)); }); function setCustomMaterial(spirit3D) { if (spirit3D instanceof Laya.MeshSprite3D) { var meshSprite3D = spirit3D; var customMaterial = new...
来源: Laya_示例 发布时间: 20251223
...ERO); this.phasorSprite3D = new Laya.PhasorSpriter3D(); Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.onMouseDown); } private onMouseDown():void{ this.camera.viewportPointToRay(new Laya.Vector2(Laya.MouseManager.instance.mouseX,Laya.MouseManager.instance.mouseY),this.ray); Laya.Physics.rayCast(thi...
来源: Laya_社区 发布时间: 20181020
...Source); cell.setImg(cell.dataSource[index]); cell.on(Laya.Event.CLICK, function() { console.log("click") }) } function onSelect(index) { console.log("当前选择的索引:" + index); } function createAPIList(api_list_view) { let data = []...
来源: Laya_社区 发布时间: 20180724
LayaAir引擎 横竖屏切换,此引擎渲染有BUG Laya.stage.on(Laya.Event.RESIZE, this, this.OnresizeFn); Laya.stage.alignH = "center";//"left"; Laya.stage.alignV = "middle";//"top"; Laya.stage.screenAdaptationEnabled=true; oldWith: number = 0; oldheight: number = 0; HengPing(isFirst: b...
来源: Laya_社区 发布时间: 20180517
...ion如何加点击事件 求指点3d射线碰撞和UI点击穿透的问题 event自定义事件的问题 laya 3D碰撞器与 Unity 不一致问题 laya2.2 导出场景物理碰撞问题 鼠标滚轮滚动事件 问题状态 最新活动: 2024-08-01 17:59 浏览: 9660 关注: 3 人 1589861985用户 ...
来源: Laya_社区 发布时间: 20240708
...ss VideoDom { htmlvideo:Laya.HtmlVideo; constructor() { Laya.stage.on(Laya.Event.CLICK,this,this.onClick); } onClick(){ this.initVideo(); } initVideo() { this.htmlvideo = new Laya.HtmlVideo(); this.htmlvideo.setSource("https://www.layaair.com/3.x/de ... ot%3B,1); this.htmlvideo.video.addEventListene...
来源: Laya_社区 发布时间: 20240305
...送消息 在JS中使用的脚本接口如下: //同步 postSyncMessage(eventName: string, data: string): string; //异步 postAsyncMessage(eventName: string, data: string): Promise<string>; JS中简单的测试案例如下: var ret = conch.postSyncMessage("syncMessage", "syncMessage from ...
来源: Laya3.0_文档 发布时间: 20251010
...获取不正确 分享:使用 Chart.js 创建图标 排行榜的创建 Event.MOUSE_WHEEL 如何获取鼠标滚轮是放大开始缩小 怎么获取对象的坐标 tree mouseHandler 怎么获取条目 怎样获取浏览器地址传过来的GET参数 Adobe Flash Builder 4.7无法编译Laya2.6.1创...
来源: Laya_社区 发布时间: 20180530
...pineAni.playbackRate(10); //侦听点击,换动画 this.spineBtn.on(Laya.Event.CLICK, this, this.changeAni); }第二,你通过Laya.timer.scale设置比较大的值,受限制是因为引擎中作了一些优化保护,让动画不至于播放过快。如果你想自己控制速度,我们也...
来源: Laya_社区 发布时间: 20241217
...c class ShurikenParticleRenderInheritanceShurikenParticleRender BaseRender EventDispatcher Object ShurikenParticleRender 类用于创建3D粒子渲染器。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By boundingBox : BoundBox[override] [re...
来源: laya_api 发布时间: 20170929