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

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

1051. ViewStack属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 51%]

...ya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建一个UI实例 this.comp = new ui.ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(this.comp); //点击Tab选择按钮的处理 this.comp.tab.selectHandler = new Laya.Handler(this...

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

1052. 3D场景中背景无法透明,版本2.7.1 [ 51%]

...terial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(tex) { material.albedoTexture = tex; })); box.meshRenderer.material = material; } } 附件 : --> laya1.rar 2020-10-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

1053. 重力感应 Accelerator 发布微信游戏后失效。是因为什么? [ 51%]

...? Accelerator.instance.on(Laya.Event.CHANGE, this, monitorAccelerator); function monitorAccelerator(acceleration, accelerationIncludingGravity, rotationRate, interval) {         let x = accelerationIncludingGravity.x;         let y = accelerationIncludingGravity.y; }   发布微信游戏...

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

1054. DragonBone动画使用(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 51%]

...age { import laya.ani.bone.Skeleton; public class DragonBonesDemo { public function DragonBonesDemo() { //初始化舞台 Laya.init(1334, 750); //创建一个Skeleton对象 var skeleton:Skeleton = new Skeleton(); //添加到舞台 Laya.stage.addChild(skeleton); skeleton.pos(600,350); //通过加载...

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

1055. 时间轴动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 51%]

...utils.Handler; import laya.webgl.WebGL; public class TimeLineDemo { public function TimeLineDemo() { //初始化舞台 Laya.init(1334,750, WebGL); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //加载图集成功后,执行onLoad回调方法 Laya.loader.load("res/atlas/ui.atlas", Handler...

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

1056. 关于3D物件半透明漫反射率(官网上的例子)的BUG。 [ 51%]

...vect = new Laya.Vector3(0.1,0.1,0);         // Laya.timer.loop(10,null,function(){         //     box.transform.rotate(vect,true,false);         // });                   2018-01-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

1057. 官方DynamicBatchTest照做为什么动态合不了批? [ 51%]

...aya.Texture2D.load("res/threeDimen/layabox.png", Laya.Handler.create(this, function (tex) { var radius = new Laya.Vector3(0, 0, 1); var radMatrix = new Laya.Matrix4x4(); var circleCount = 50;   var boxMesh = Laya.PrimitiveMesh.createBox(0.02, 0.02, 0.02); var boxMat = new Laya.BlinnPhongMaterial();...

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

1058. 更新到1.7.6beta之后,HBox有bug [ 51%]

...s/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { var hbox: laya.ui.HBox = new laya.ui.HBox(); for (var i: number = 0; i < 10; i++) { var skin: string; switch (i) { case 0: skin = "comp/bg.png"; break; case 1: skin = "comp/blank.png"; break; ca...

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

1059. 【初学者】导入模型进行旋转结果出现问题 [ 51%]

...new Laya.Vector3(1,0,0); //每10毫秒旋转一次 Laya.timer.loop(10,null,function(){ box.transform.rotate(vect,true,false); }); 以上是代码 出现的问题是有一个物体 然后另外一个物体在旋转 2018-08-08 添加评论 已悬赏2元 --> 分享 微博 QZONE 微信 没有找到相...

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

1060. 内存优化方式(JavaScript-2D进阶篇(JS)-性能优化) [ 51%]

...; //帧循环 Laya.timer.frameLoop(1, this, onFrame); this.createTime = 0; function onFrame() { //如果创建对象时间为100帧间隔后 if (this.createTime >= 100) { //每200帧间隔创建30个雪花 for (var i = 0; i 640 + 20 || img1.scaleX 在一些特殊情况我们需要注意`Laya.Hanlder...

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