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

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

1021. 3d粒子只要勾了looping,每次播放完开始下一次循环的时候都会闪烁一下 [ 48%]

...yaScene_gamescene/Conventional/chest01.lh", Laya.Handler.create(this, function(sp:Laya.Sprite3D):void { console.log("111111111111111111111") var target: Laya.Sprite3D = scene3d.addChild(sp) as Laya.Sprite3D; camera.convertScreenCoordToOrthographicCoord(pos, translate); target.transfor...

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

1022. drawcall优化问题 [ 48%]

...-01-22 23:37 Laya.loader.load( 'res/atlas/comp.json', Handler.create(this, function(){ container = new Laya.Sprite(); var x = 0,y =80; Laya.stage.addChild(container); for(var i=0;i<1200;i++){ var role = new Laya.Sprite(); x = x+0.1; y = y+0.1 role.x = x; role.y = y; role.loadImage('comp/bg.png');...

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

1023. Sprite-新手引导 [ 48%]

...0; private var hitArea:HitArea; private var interactionArea:Sprite; public function Sprite_Guide() { Laya.init(1285, 727); Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; //绘制一个蓝色方块,不被抠图 var gameContainer:Sprite = new Sprite(); gameContainer....

来源: Laya2.0_示例 发布时间: 20260819

1024. 让 CylinderMesh 支持椎体 [ 48%]

让 CylinderMesh 支持椎体 function CylinderMesh(radius,radius2,height,slices){创建出下面半径大小   修改第二个循环结构, 也就是柱状顶点绘制   __proto.recreateResource=function(){ this._numberVertices=(this._slices+1+1)+(this._slices+1)*2+(this._slices+1+1); this._numb...

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

1025. 全局安装layaair2-cmd报错怎么办啊 [ 48%]

...at Module.load (node:internal/modules/cjs/loader:981:32) npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:822:12) npm ERR!     at Module.require (node:internal/modules/cjs/loader:1005:19) npm ERR!     at require (node:internal/modules/cjs/helpers:102:18)   请问有人...

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

1026. 分包项目, 加载js时报错 [ 48%]

.../     public class loading100 extends Box     {         public function loading100()         {             var txt:Text = new Text();             //设置文本内容             txt.text = "Hello Layabox2";             //设置文本颜色为白...

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

1027. 用laya自带的ui编辑器 编辑了一个ui界面,怎么加载啊? 怎么写代码让这个ui界面, 在程序运行时,显示出来啊? [ 47%]

...件怎么生成的?   STATICATTR$(TestPageUI,         ['uiView',function(){return this.uiView={"type":"View","child":[{"props":{"x":0,"y":0,"skin":"comp/bg.png","sizeGrid":"30,4,4,4","width":600,"height":400},"type":"Image"},{"props":{"x":41,"y":56,"skin":"comp/button.png","label":"点我...

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

1028. 模拟石头下落过程不明抖动 [ 47%]

...始化顶层游戏类 */ // laya.utils.Stat.show(0,0); // window.onerror = function(message,url,line){ // alert("执行" + url + "文件中的第" + line + "行代码出错,错误信息:" + message); // }; // Game.inst.start(); setInterval( this.addball.bind( this ),500); } public addball(){ for...

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

1029. DOM元素-视频 [ 47%]

...t laya.utils.Utils; /** * ... * @author */ public class DOM_Video { public function DOM_Video() { Laya.init(800, 600); Laya.stage.bgColor = "#FFFFFF"; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; // 创建Video元素 var videoElement:Object = Browser.createElement(...

来源: Laya2.0_示例 发布时间: 20260819

1030. 刚刚接触2天layaair,有几个问题请教。 [ 47%]

...用,强行在Main.js里面写入 btn1.on(Event.CLICK, this, onBtnClick); function onBtnClick() { alert('222'); } btn1 is not defined 按教程写脚本,实在找不到地方写,请问有没有类似教程呢。 问题3)我在Scenes 新建了2个view,一个是v1一个是v2。其中v1里面...

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