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

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

1401. Tree属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 47%]

...y.Stage; import laya.ui.Tree; import laya.utils.Browser; import laya.utils.Handler; import laya.utils.Utils; import laya.webgl.WebGL; public class UI_Tree { public function UI_Tree() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); //画布垂直居中对齐 Laya.stage.alignV ...

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

1402. laya.d3.core.pixelLine.PixelLineMaterial [ 47%]

...oneTo(destObject:*):void 克隆。 BaseMaterial load(url:String, complete:Handler):void[static] 加载材质。 BaseMaterial setShaderName(name:String):void 设置使用Shader名字。 BaseMaterialProtected Methods Show Inherited Protected Methods Show Inherited Protected Methods MethodDefined By...

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

1403. laya.ui.ProgressBar [ 47%]

...方向中心线的距离(以像素为单位)。 UIComponent  changeHandler : Handler 当 ProgressBar 实例的 value 属性发生变化时的函数处理器。 默认返回参数value 属性(进度值)。 ProgressBar customRenderEnable : Boolean[write-only] 设置是否开启自定义渲...

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

1404. Sprite3D添加组件或脚本(ActionScript-3D基础(AS3)-LayaAir3D之精灵) [ 47%]

...eeDimen/skinModel/LayaMonkey/LayaMonkey.lh"]; Laya.loader.create(resource, Handler.create(this, onComplete)); } private function onComplete():void { //记载场景 var scene:Scene3D = Laya.stage.addChild(new Scene3D()) as Scene3D; //加载相机 var camera:Camera = scene.addChild(new Camera(0, 0.1, ...

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

1405. 提示资源重复加载 [ 47%]

...); //this.init(); this.swimpoolani.loadAtlas("./res/atlas/Comp.atlas",Laya.Handler.create(this,this.onLoaded));   } private onLoaded():void{   Laya.Animation.createFrames([swimpoorpath01,swimpoorpath02],"swimpoolani"); Laya.stage.addChild(this.swimpoolani); this.swimpoolani.play(0,true,"swimpoolan...

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

1406. laya2.7.3 Cannon物理设置了ColliderShape的localOffset属性 并 isKinematic=true时模型会匀速移动 [ 47%]

...ibs-end------- 完整重现代码如下: Laya3D.init(720, 1280, null, Laya.Handler.create(null, () => { Config3D.useCannonPhysics = true; Laya.stage.scaleMode = "fixedwidth"; Laya.stage.screenMode = "none"; Laya.stage.alignV = "top"; Laya.stage.alignH = "left";  let scene = Laya.stage.addChild(n...

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

1407. 进度条组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 47%]

...width = 400; this.progressBar.sizeGrid = "5,5,5,5"; this.progressBar.changeHandler = new Laya.Handler(this, this.onChange); this.owner.addChild(this.progressBar); Laya.timer.loop(100, this, this.changeValue); }); } // 模拟进度条加载 private changeValue(): void { if (this.progressBar.value &gt...

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

1408. 导航容器组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 47%]

...一次 onAwake(): void { //点击Tab选择按钮的处理 this.tab.selectHandler = new Laya.Handler(this, this.onSelecte); } // 根据选择tab的索引切换页面 private onSelecte(index: number): void { //切换ViewStack子页面 this.viewstack.selectedIndex = index; } } 最终的效果如动图1...

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

1409. laya.display.Scene_API3.0 [ 46%]

...ers node: Node Returns boolean loadImage loadImage(url: string, complete?: Handler): Sprite Inherited from Text.loadImage Defined in laya/display/Sprite.ts:1578 加载并显示一个图片。相当于加载图片后,设置texture属性 注意:2.0改动:多次调用,只会显示一个图片...

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

1410. tween complete 报错 以及如何判断对象正在缓动中 [ 46%]

...把 Laya.Tween.to(letterText, { y : 300 }, 1000, Laya.Ease.bounceIn, Laya.Handler.create(this,this.changeColor,[letterText]), i * 100); 2017-11-22 0 0 分享 微博 QZONE 微信 liner1457387450 赞同来自: 恩恩,你写的这句是基本的用法,我想用tween API里complete()立即完成...

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