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

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

61. laya.utils.Tween [ 58%]

...属性列表,比如{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

62. 3D灯光与阴影 · LayaAir3.3 · 引擎文档 · LAYABOX [ 58%]

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

63. 2D网格渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 58%]

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

64. 3D变换 · LayaAir3.3 · 引擎文档 · LAYABOX [ 56%]

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

65. 动画节点 · LayaAir3.3 · 引擎文档 · LAYABOX [ 53%]

...和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.ani.source = "resources/role.atlas"; //接收动画数据源为图集 this.ani.autoPlay = true; //开启自动播放 this.ani.wrapMode = 0; //播放模式为正序播放模式(POSITIVE) this.ani.interval = 50; //动画...

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

66. HTML文本 · LayaAir3.0文档 · LAYABOX [ 53%]

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

67. laya.ui.Tree_API3.0 [ 52%]

.../clip_tree_folder.png", "resource/ui/clip_tree_arrow.png"], Handler.create(this, onLoadComplete)); } private function onLoadComplete():void { var xmlString:String;//创建一个xml字符串,用于存储树结构数据。 xmlString = "<root><item label='box1'><abc...

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

68. laya.display.Node [ 51%]

...。功能同Laya.timer.clearTimer()。 Parameters caller:* — 执行域(this)。  method:Function — 结束时的回调方法。 contains()method  public function contains(node:Node):Boolean 当前容器是否包含指定的 Node 节点对象 。 Parameters node:Node — 指定的 Node 节点对...

来源: laya_api 发布时间: 20170929

69. [LayaNative2.2.0beta4] 无论是否删除或者替换layabox.ttf 都会直接crash 【有demo】 [ 51%]

...re 赞同来自: 我修改了2.2.0beta4的引擎,按照你的代码,将this改成Text,确实不会crash了,但是Label显示出屏幕了: 这个在浏览器上是正常的 2019-08-30 0 0 分享 微博 QZONE 微信 happyfire 赞同来自: 请问这个错误 JCFreeTypeFontRender::getBitmapD...

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

70. 3D物理系统 · LayaAir3.3 · 引擎文档 · LAYABOX [ 51%]

...器的方式: /* ……省略若干代码 */ //获取物理刚体组件 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