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

大约有 820 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0076 秒)

601. 垂直滚动条组件 · LayaAir3.0文档 · LAYABOX [ 51%]

...ng"; vs.height = 300; vs.pos(300, 300); vs.min = 0; vs.max = 100; vs.changeHandler = new Laya.Handler(this, this.onChange); this.owner.addChild(vs); }); } private onChange(value: number): void { this.text.text = "滚动条的位置: value=" + value; } } 运行效果: (动图2-1) Copyright ©...

来源: Laya3.0_文档 发布时间: 20230911

602. 调用动画结束on方法,报错this.zombieAnimator.on is not a function [ 51%]

...例3D Laya.Sprite3D.load("res/threeDimen/skinModel/Zombie/Zombie.lh", Laya.Handler.create(this, function(zombie:Laya.Sprite3D):void { scene.addChild(zombie); this.zombieAnimator = (zombie.getChildAt(0) as Laya.Sprite3D).getComponent(Laya.Animator) as Laya.Animator;//获取Animator动画组件 this.z...

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

603. Button属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 50%]

...源成功后,执行onLoaded回调方法 Laya.loader.load(this.skin,Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个Button实例 var btn:Laya.Button = new Laya.Button(this.skin); //将Button添加到舞台上 Laya.stage.addChild(btn); //设置Button相关属性 bt...

来源: Laya2.0_文档 发布时间: 20210714

604. 小游戏子域程序加载到图集后,取图集内资源报错。 [ 50%]

...ivate function beginLoad():void { Laya.loader.load("res/images/rank.json", Handler.create(this, onLoaded)); } private function onLoaded():void { trace("加载成功"); var c:Image = new Image("rank/country.png"); Laya.stage.addChild(c); }  以上是子域项目中加载图集取资源的代码...

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

605. laya.ui.ViewStack [ 50%]

...ion : Node 获取或设置当前选择的项对象。 ViewStack  setIndexHandler : Handler 索引设置处理器。 默认回调参数:index:int ViewStack skewX : Number水平倾斜角度,默认值为0。以角度为单位。Sprite skewY : Number垂直倾斜角度,默认值为0。以角度...

来源: Laya2.0_api 发布时间: 20190513

606. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 50%]

...nglei999 赞同来自:     var Loader = Laya.Loader;     var loaderHandler = Laya.Handler; var scronw=640; var scronh=960;      //初始化展示界面    Laya.init(scronw, scronh) //设置舞台背景色 Laya.stage.bgColor = '#999999'; //设置适配模式     Laya.stage.scaleMod...

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

607. laya.ui.TextInput_API3.0 [ 50%]

...e { import laya.display.Stage; import laya.ui.TextInput; import laya.utils.Handler; public class TextInput_Example { public function TextInput_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load...

来源: Laya3.0_api 发布时间: 20231115

608. laya.ui.TextArea_API3.0 [ 50%]

... TextArea 实例。 package { import laya.ui.TextArea; import laya.utils.Handler; public class TextArea_Example { public function TextArea_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/inpu...

来源: Laya3.0_api 发布时间: 20231115

609. 简单粒子效果,发布成单机版apk在移动端安装运行,结果显示不出来 [ 50%]

.../?Particle_T1  ) 主要就是: Laya.loader.load("SnowParticle.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON);           public function onAssetsLoaded(settings:ParticleSetting):void         {             sp = new Particle2D(settings);            ...

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

610. 小程序开放域相关 [ 50%]

...Message(onGetMessage);             Laya.loader.load(urlconfig,new Handler( null,onLoaded),null);                          function onLoaded():void {                 trace("urlconfigurlconfigurlconfigurlconfigurlconfigurlconfigurlconfigurlconfigurlconfigv");  ...

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