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

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

2571. 自定义shader-地形shader [ 42%]

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

2572. 射线检测报错,outHitInfo.sprite3D=null; [ 42%]

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

2573. list item 添加事件后无法监听 [ 42%]

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

2574. 横竖屏切换,此引擎渲染有BUG [ 42%]

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

2575. [LayaAir3]2个刚体的group相等且大于0的整数,但是碰撞事件并没有执行 [ 42%]

...ion如何加点击事件 求指点3d射线碰撞和UI点击穿透的问题 event自定义事件的问题 laya 3D碰撞器与 Unity 不一致问题 laya2.2 导出场景物理碰撞问题 鼠标滚轮滚动事件 问题状态 最新活动: 2024-08-01 17:59 浏览: 9660 关注: 3 人 1589861985用户 ...

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

2576. [LayaAir2]在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 42%]

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

2577. 原生语言与JS通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

...送消息 在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

2578. 关于创建Sprite获取大小 [ 42%]

...获取不正确 分享:使用 Chart.js 创建图标 排行榜的创建 Event.MOUSE_WHEEL 如何获取鼠标滚轮是放大开始缩小 怎么获取对象的坐标 tree mouseHandler 怎么获取条目 怎样获取浏览器地址传过来的GET参数 Adobe Flash Builder 4.7无法编译Laya2.6.1创...

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

2579. [LayaAir3]Laya 2.x/3.x 演示项目中 Laya.timer.scale 和 Laya.SpineSkeleton.playbackRate 对部分骨骼加速不生效 [ 42%]

...pineAni.playbackRate(10); //侦听点击,换动画 this.spineBtn.on(Laya.Event.CLICK, this, this.changeAni); }第二,你通过Laya.timer.scale设置比较大的值,受限制是因为引擎中作了一些优化保护,让动画不至于播放过快。如果你想自己控制速度,我们也...

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

2580. laya.d3.core.particleShuriKen.ShurikenParticleRender [ 42%]

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