大约有 1,720 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0063 秒)
Laya_社区(1002) Laya3.0_api(243) Laya2.0_示例(91) Laya_示例(90) Laya2.0_文档(89) Laya2.0_api(82) laya_api(75) Laya3.0_文档(48)
...function Laya(){} Laya.__init=function(_classs){} Laya.init=function(width,height,__plugins){} Laya.alertGlobalError=function(value){} Laya.enableDebugPanel=function(debugJsPath){} Laya.stage=null; Laya.systemTimer=null; Laya.startTimer=null; Laya.physicsTimer=null; Laya.updateTimer=null; Laya.lateT...
来源: Laya_社区 发布时间: 20200426
...开放数据域的样式和布局 let style = { container: { width: 400, height: 200, backgroundColor: "#ffffff", justifyContent: "center", alignItems: "center", }, testText: { color: "#ffffff", width: "100%", height: "100%", lineHeight: 200, fontSize: 40, textAlign: "center", }, // 文字的最终...
来源: Laya3.0_文档 发布时间: 20251010
...eatY = 4; list.x = (Laya.stage.width - Item.WID) / 2; list.y = (Laya.stage.height - Item.HEI * list.repeatY) / 2; // 设置List的垂直滚动 list.scrollType = Laya.ScrollType.Vertical; // 设置List的垂直滚动皮肤,不设置或者""就没有滚动条皮肤 list.vScrollBarSkin = ""; // 开...
来源: Laya3.0_文档 发布时间: 20251010
...iewport.y; this._rayViewport.width = ILaya.stage._width; this._rayViewport.height = ILaya.stage._height; Picker.calculateCursorRay(point, this._rayViewport, this._projectionMatrix, this.viewMatrix, null, out); } 参照3D-RPG项目,我们加上一段代码,当鼠标点击屏幕时,会发射一...
来源: Laya3.0_文档 发布时间: 20251010
....TextFormat; import flash.utils.Timer; [SWF(width = "1000", height = "618", backgroundColor = "0x0", frameRate = "30")] public class iLoader extends Sprite { public static var PATH:String = ""; public static var VCM:Function; pu...
来源: Laya_社区 发布时间: 20200217
...e { import flash.display.Sprite; import flash.events.Event; [SWF(width=960,height=640,backgroundColor=0x0,frameRate=60)] public class Main extends Sprite { public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); this.init(); } private function init(e:Event...
来源: Laya_社区 发布时间: 20151218
...方式动态改变item的大小: 在itemRenderer的内部使用width、height或size改变item的大小。 item建立对内部元件的关联,然后在itemRenderer里修改内容触发内部元件的改变,从而自动改变item高度。例如item建立了一个对内部某个可变高度文...
来源: Laya3.0_文档 发布时间: 20251128
...]; // 守护神设置旋转 this.angel.pivot(boundAngel.width/2,boundAngel.height); this.angel.rotation = -15; // 守护神设置呼吸 Laya.Tween.to(this.angel,{scaleY:0.99},900,Laya.Ease.linearInOut,Handler.create(this,this.angelTween1)); // 飞艇设置浮动 Laya.Tween.to(this.aeroboat,{y:-data....
来源: Laya_社区 发布时间: 20170720
...txt.bold = true; txt.pos(g_stat_width - txt.width - 40, g_stat_heiht - txt.height - 20); Laya.stage.addChild(txt); txt.on(Laya.Event.CLICK, this, function(e) { switch (e.type) { case Laya.Event.CLICK: gameStart(); break; } }); //注册鼠标点击 加入一个显示得分的函数,分数由时间...
来源: Laya_社区 发布时间: 20160623
...json)文件 [key: string]: any; } TextureConstructParams { width?: number, height?: number, format?: TextureFormat, mipmap?: boolean, canRead?: boolean, sRGB?: boolean, } TexturePropertyParams { wrapModeU?: number, wrapModeV?: number, filterMode?: FilterMode, anisoLevel?: number, premultiplyAlpha?: ...
来源: Laya3.0_文档 发布时间: 20251010