大约有 1,162 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0151 秒)
Laya_社区(657) Laya_示例(157) Laya2.0_文档(129) Laya2.0_示例(116) Laya3.0_api(72) Laya3.0_文档(11) laya_api(11) Laya2.0_api(9)
....loader.load("./res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //实例化导出的UI类 var efc = new ui.TestPUI(); //添加到舞台 Laya.stage.addChild(efc); } ``` 运行后,按钮被按下时,动画效果如动图11所示: (图11) ### 4、...
来源: Laya2.0_文档 发布时间: 20210715
...t laya.utils.Utils; import laya.webgl.WebGL; public class UI_Tree { public function UI_Tree() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); //画布垂直居中对齐 Laya.stage.alignV = Stage.ALIGN_MIDDLE; //画布水平居中对齐 Laya.stage.alignH = Stage.ALIGN_CENTER; ...
来源: Laya2.0_文档 发布时间: 20210715
...中文的json文件 报错 导微信小程序报错window.focus is not a function 启动引擎报错 mPlugin.game_plugin_init(3); 问题状态 最新活动: 2017-11-08 15:47 浏览: 1117 关注: 2 人 wudi199553 • 2017-11-08 15:49 你建的是3d项目啊 GamingSpree • 2017-11-08 15:52 @wudi19955...
来源: Laya_社区 发布时间: 20171108
...Array的zlib.min.js后报错 导微信小程序报错window.focus is not a function IDE通过.ui自动生成的ui代码报错 本地调试加载本地图片都报错 小游戏项目 加载有中文的json文件 报错 官网示例摇一摇报错,就解决方案 启动引擎报错 mPlugin.game_plug...
来源: Laya_社区 发布时间: 20190812
...例就可以拥有不同的播放速度了!/** * 角色创建 */ public function init(interval,type:String,hp:Number,speed:Number,hitRadius:Number,camp:Number,heroType:Number = 0):void { //初始化属性 this.type = type; this.hp = hp; this.speed = speed; this.hitRadius = hitRadius; this.camp = c...
来源: Laya_社区 发布时间: 20170420
...ded回调方法 Laya.loader.load(skin,Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建一个Button实例 var btn = new Laya.Button(skin); //将Button添加到舞台上 Laya.stage.addChild(btn); //设置Button相关属性 btn.width = 100; btn.height = 50; btn.pos(100,100); btn.label...
来源: Laya2.0_文档 发布时间: 20210714
让 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
...Component(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 CustomTerrainMaterial(); cust...
来源: Laya_示例 发布时间: 20261113
...ontext.ts:202 Returns void Globals "laya/resource/NativeContext" CONTEXT2D_FUNCTION_ID NativeContext constructor _buffer _byteArray _fdata _idata sprite ARRAY_BUFFER_REF_COPY ARRAY_BUFFER_REF_REFERENCE ARRAY_BUFFER_TYPE_CMD ARRAY_BUFFER_TYPE_DATA ENUM_TEXTALIGN_CENTER ENUM_TEXTALIGN_DEFAULT ENUM_TEX...
来源: Laya3.0_api 发布时间: 20231102
...ild(this.label); //鼠标事件 Laya.stage.on(Laya.Event.MOUSE_UP, this, function (): void { var str: String = ""; for (var i: number = 0; i < this._outHitAllInfo.length; i++) { str += this._outHitAllInfo.sprite3D.name + " "; } if (this._outHitAllInfo.length == 0) { str = "点击选取的几何...
来源: Laya_社区 发布时间: 20180820