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

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

1721. Laya.Sprite loadImage 参数问题 [ 52%]

...ite{ var Img:Laya.Sprite = new Laya.Sprite(); //添加到舞台 Laya.stage.addChild(Img); //加载显示图片 Img.loadImage("res/img/monkey1.png", w, h);//报错 return Img; } /**创建红色滤镜位图**/ private creteRedFilter():void{ //颜色滤镜矩阵,红色 var colorMatrix:any = [ 1, 0, 0...

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

1722. laya.d3.core.BaseCamera_API3.0 [ 52%]

...nderer timer transform url Methods _initialize _processActive addAllLayers addChild addChildAt addChildren addComponent addComponentInstance addLayer bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent...

来源: Laya3.0_api 发布时间: 20231115

1723. 一个3D正方体模型,想给它六个面贴不同的贴图,该如何处理? [ 52%]

...想给它六个面贴不同的贴图,该如何处理? var box = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(1, 1, 1))); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); box.transform.translate(new Laya.Vector3(10, 10, 10)); var material = new Laya.StandardMaterial(); mat...

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

1724. 新人求教!!! [ 52%]

...    this.img = new Laya.Sprite();    //添加到舞台    Laya.stage.addChild(this.img);    //显示初始化绘制的图片    this.switchImg();    //侦听switchImg中图片区域的点击事件,触发后执行switchImg切换纹理绘制    this.img.on("click",this,this.switchImg);...

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

1725. Cannot read property 'props' of undefined [ 52%]

...   //加载完成获取到了Scene3d             Laya.stage.addChild(scene);         })); 附件 : --> LayaScene_Map.zip 2020-07-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Xq 赞...

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

1726. 绘制形状时事件不触发 [ 52%]

...ing = new myRing(600, 300, 18, "#087729", 40, "#a87729");     Laya.stage.addChild(ring.sprite); }   laya_test();   代码如上,点击绘制的圆环,无触发事件 使用的库为LayaAirJS_1.5.5_beta,库内无修改   laya air引擎使用过程中,经常发现各种不触发事件的...

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

1727. laya.d3.core.light.SpotLight_API3.0 [ 52%]

...wStrength spotAngle timer transform url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getCompo...

来源: Laya3.0_api 发布时间: 20231115

1728. 如何获取unity导出的摄像机 [ 52%]

...reateComplete(){ var land = Laya.loader.getRes("land/main.lh"); this.scene.addChild(land); var camera = land.getChildByName("Camera"); camera.addComponent(CMS);//控制脚本 console.log(camera); }         2019-06-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回...

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

1729. laya.ui.TextInput_API3.0 [ 52%]

...度。 textInput.height = 200;//设置 textInput 的高度。 Laya.stage.addChild(textInput);//将 textInput 添加到显示列表。 } } } example Laya.init(640, 800);//设置游戏画布宽高 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色 Laya.loader.load(["resource/ui/input.png"], ...

来源: Laya3.0_api 发布时间: 20231115

1730. 预设/场景的导出(ActionScript-3D基础(AS3)-LayaAir3D之3D场景可视化编辑) [ 52%]

...ion onComplete(scene:Scene3D):void{ // 将场景加到舞台上 Laya.stage.addChild(scene); } } } ``` 运行效果(图2): ![](img/2.png)(图2)

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