大约有 168 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0083 秒)
...ipt、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。(function() { // 项渲染器 var Box = Laya.Box; var Label = Laya.Label; function ListItemRender() { var label = null; ListItemRender.__super.call(this); this.size(100, 20); label = new Label(); label.fontSize = 12; label.col...
来源: Laya_示例 发布时间: 20260929
...化shader ```typescript //初始化我们的自定义shader public static function initShader() { //所有的attributeMap属性 var attributeMap = { 'a_Position': Laya.VertexMesh.MESH_POSITION0, 'a_Normal': Laya.VertexMesh.MESH_NORMAL0 }; //所有的uniform属性 var uniformMap = { 'u_MvpMatrix': La...
来源: Laya2.0_文档 发布时间: 20210715
加载的时候动画会卡 上代码: _pro.startLoad = function() { this.loadLayer = new Lload(); this.big.addChild(this.loadLayer); var imgArr = ; imgArr.push({url:"cont/cpf1.jpg",type:Loader.IMAGE}); imgArr.push({url:"cont/cpr1.jpg",...
来源: Laya_社区 发布时间: 20160815
最新版本绘制100x100个sprite ios不能显示 /* 游戏地图 */ function GameMap(){ this.MapRowNum = 100; this.MapColNum = 100; GameMap.super(this); this.init(); } Laya.class(GameMap, "GameMap", laya.display.Sprite); var _proto = GameMap.prototype; _proto.init = function(){ var boxSp = new la...
来源: Laya_社区 发布时间: 20161008
...,但是每次都给我翻倍的增加,如何解决 _proto.room_xinxi=function(){ this.roombg=new Laya.Image($mj.Curr_Game_ImagePath + "hall/room_bg.png"); this.roombg.pos(50,150); this.addChild(this.roombg); var button = new Sprite(); button.loadImage($mj.Curr_Game_ImagePath + "hall/room_jiesan....
来源: Laya_社区 发布时间: 20170920
...刷新,才能恢复原样。 UI界面的继承类 var StartResource = function StartResource(){ StartResource.super(this); //LOGO 图标 访问地址 var href='https://list.tmall.com/search_product.htm?q=%BB%A8%D3%A1%D0%B6%D7%B1%CB%AE&type=p&spm=a220m.1000858.a2227oh.d100&xl=%BB%A8%...
来源: Laya_社区 发布时间: 20180810
...享 微博 QZONE 微信 GameMonkey 赞同来自: 补充下主要的代码(function(global){ var Laya3D = global.Laya3D; var Laya = global.Laya; Laya3D.init(0, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); Laya.Scene3D.load('/1/res...
来源: Laya_社区 发布时间: 20200611
...n.core.handlers.Handler; public class ListView extends ListViewUI { public function ListView() { super(); var arr:Array=[]; for(var i:int=0;i<95;i++) { arr.push({icon:i,label:"Index"+i}); } boxList.array=arr; boxList.mouseHandler=new Handler(listRender); } private function listRender(e:MouseEvent...
来源: Laya_社区 发布时间: 20151224
...ationFrame || win.oRequestAnimationFrame || win.msRequestAnimationFrame || function (fun: any): any { return win.setTimeout(fun, 1000 / 60); } initRender()为画布初始化函数,创建和保存了WebGL上下文环境。如需更改canvas的参数,如设置是否抗锯齿,请在初始化引...
来源: Laya_社区 发布时间: 20200925
...S_TIMER_TYPE_RECT:String = "PROGRESS_TIMER_TYPE_RECT" public function ProcessTimer(size:Size) { this.spSize = size; super(); } public static function create(img:Image,size:laya.maths.Size...
来源: Laya_社区 发布时间: 20180404