大约有 143 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0050 秒)
Laya3.0_api(61) Laya3.0_文档(44) Laya_社区(16) Laya2.0_api(7) laya_api(6) Laya2.0_文档(5) Laya2.0_示例(2) Laya_示例(2)
...属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。 duration:int — 花费的时间,单位毫秒。 ease:Function (default = null) — 缓动类型,默认为匀速运动。 complete:Handler (default = null) ...
来源: laya_api 发布时间: 20170929
...ya.Sprite3D(); let pointCom = pointLight.addComponent(Laya.PointLightCom); this.scene.addChild(pointLight); //点光源的颜色 pointCom.color = new Laya.Color(1.0, 0.5, 0.0, 1); //设置点光源的范围 pointCom.range = 3.0; pointLight.transform.position = new Laya.Vector3(0.0, 1, 0.0); 三、Di...
来源: Laya3.0_文档 发布时间: 20251010
...ya.loader.load("resources/layabox.png", Laya.Loader.IMAGE).then(() => { this.setMesh2DRender(); }); } // 配置2D网格渲染器 setMesh2DRender(): void { let mesh2Drender = this.layaMonkey.getComponent(Laya.Mesh2DRender); // 添加网格 mesh2Drender.sharedMesh = this.generateCircleVerticesAndUV...
来源: Laya3.0_文档 发布时间: 20251120
...cal: boolean = true): void { if (isLocal) { Matrix4x4.createFromQuaternion(this.localRotation, Transform3D._tempMatrix0); Vector3.transformCoordinate(translation, Transform3D._tempMatrix0, Transform3D._tempVector30); Vector3.add(this.localPosition, Transform3D._tempVector30, this._localPosition); th...
来源: Laya3.0_文档 发布时间: 20251010
...和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.ani.source = "resources/role.atlas"; //接收动画数据源为图集 this.ani.autoPlay = true; //开启自动播放 this.ani.wrapMode = 0; //播放模式为正序播放模式(POSITIVE) this.ani.interval = 50; //动画...
来源: Laya3.0_文档 发布时间: 20251010
...om/'>LayaBox欢迎你的加入!</span>"; div.on(Laya.Event.LINK,this,(data:any)=>{ Laya.Browser.window.location.href=data; }); Laya.stage.addChild(div); 运行效果: 点击文字链接可以打开浏览器访问网址 3.6 实现html页面跳转 示例如下: var iHtml:HTMLIframeEl...
来源: Laya3.0_文档 发布时间: 20230303
.../clip_tree_folder.png", "resource/ui/clip_tree_arrow.png"], Handler.create(this, onLoadComplete)); } private function onLoadComplete():void { var xmlString:String;//创建一个xml字符串,用于存储树结构数据。 xmlString = "&lt;root&gt;&lt;item label='box1'&gt;&lt;abc...
来源: Laya3.0_api 发布时间: 20231115
...。功能同Laya.timer.clearTimer()。 Parameters caller:* — 执行域(this)。 method:Function — 结束时的回调方法。 contains()method public function contains(node:Node):Boolean 当前容器是否包含指定的 Node 节点对象 。 Parameters node:Node — 指定的 Node 节点对...
来源: laya_api 发布时间: 20170929
...re 赞同来自: 我修改了2.2.0beta4的引擎,按照你的代码,将this改成Text,确实不会crash了,但是Label显示出屏幕了: 这个在浏览器上是正常的 2019-08-30 0 0 分享 微博 QZONE 微信 happyfire 赞同来自: 请问这个错误 JCFreeTypeFontRender::getBitmapD...
来源: Laya_社区 发布时间: 20190829
...器的方式: /* ……省略若干代码 */ //获取物理刚体组件 this.rigidbody1 = this.cube1.getComponent(Laya.Rigidbody3D) as Laya.Rigidbody3D; this.rigidbody2 = this.cube2.getComponent(Laya.Rigidbody3D) as Laya.Rigidbody3D; //设置rigidbody1为触发器,取消物理反馈 this.rigidbody...
来源: Laya3.0_文档 发布时间: 20251010