大约有 732 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0083 秒)
Laya_社区(366) Laya_示例(77) Laya2.0_示例(64) Laya3.0_api(63) Laya2.0_api(58) laya_api(53) Laya2.0_文档(37) Laya3.0_文档(14)
...ponents customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D isMusic loop mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY playEvent rotation scaleX scaleY sce...
来源: Laya3.0_api 发布时间: 20231115
...() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 init();//初始化 } private function init():void { var animation:Animation = new Animation();//创建一个 Animation 类的实例对象 animation 。 animation.load...
来源: Laya3.0_api 发布时间: 20231115
...n Image_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { var bg:Image = new Image("resource/ui/bg.png");//创建一个 Image 类的实例对象 bg ,并传入它的皮肤。 bg.x ...
来源: Laya3.0_api 发布时间: 20231115
...ponents customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize emitter filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY rotation scaleX scaleY scene scrollRect s...
来源: Laya3.0_api 发布时间: 20231115
...log = new NormalDialog(context); this.normalDialog.popup(true, true); Laya.stage.addChild(this.normalDialog); } } // 弹窗代码 class NormalDialog extends ui.normalDialogUI { constructor( text: string ) { super(); // 设置label文字 this.context.text = text; this.btn_close.on(Laya.E...
来源: Laya_社区 发布时间: 20181216
...不对,可以参考下我下面的例子 package { import laya.display.Stage; import laya.ui.Button; import laya.ui.Dialog; import laya.ui.Image; import laya.utils.Handler; import laya.webgl.WebGL; public class DialogCenterClose { private const DIALOG_WIDTH:int = 220; private const DIALOG_HEIGHT:i...
来源: Laya_社区 发布时间: 20170706
...ponents customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY rotation scaleX scaleY scene scrollRect skewX ske...
来源: Laya3.0_api 发布时间: 20231115
...种开发语言、LayaAirIDE让项目开发更高效。(function() { var Stage = Laya.Stage; var HScrollBar = Laya.HScrollBar; var VScrollBar = Laya.VScrollBar; var Handler = Laya.Handler; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Lay...
来源: Laya_示例 发布时间: 20251209
... let partIns = new Laya.Particle2D(settings); Laya.stage.addChild(partIns); // 开始发射粒子 partIns.emitter.start(); // 播放 partIns.play(); partIns.x = Laya.stage.width / 2; ...
来源: Laya_社区 发布时间: 20190704
...我改的代码如下: module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Rectangle = Laya.Rectangle; import Texture = Laya.Texture; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Interactio...
来源: Laya_社区 发布时间: 20171106