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

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

381. laya.media.SoundNode_API3.0 [ 72%]

...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

382. laya.display.Animation_API3.0 [ 72%]

...() { 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

383. laya.ui.Image_API3.0 [ 72%]

...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

384. laya.particle.Particle2D_API3.0 [ 72%]

...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

385. dialog的popup方法不会关闭其他弹窗 [ 72%]

...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

386. dialog的lock属性没出现 [ 72%]

...不对,可以参考下我下面的例子 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

387. laya.map.GridSprite_API3.0 [ 72%]

...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

388. UI-ScrollBar [ 72%]

...种开发语言、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

389. ReferenceError: Loader is not defined 搞不懂引擎原生的也会报这个错? [ 72%]

...    let partIns = new Laya.Particle2D(settings);         Laya.stage.addChild(partIns);         // 开始发射粒子         partIns.emitter.start();         // 播放         partIns.play();          partIns.x = Laya.stage.width / 2;       ...

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

390. 怎么对graphics画出来的图片进行鼠标点击拖动??? [ 72%]

...我改的代码如下: 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