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

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

101. laya.ui.View_API3.0 [ 81%]

...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void close close(type?: string): void Inherited from Scene.close Defined in laya/display/Scene.ts:149 关闭场景 【注意】被关闭的场景,如果没有设...

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

102. 如何让发布后的H5加载资源用src或href指向本地路径,而不是网络请求 [ 81%]

...rome-extension, https.   load(url) {             var me = this;             url = URL.formatURL(url);             this.url = url;             this.audioBuffer = WebAudioSound._dataCache[url];             if (this.audioBuffer) {...

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

103. LayaAir IDE 1.4.0新增功能 附加(扩展)脚本的使用 [ 81%]

..._owner不为null if(_isScal&&_owner) { _owner.on(Event.MOUSE_DOWN,this,onDown); } else { return; } } public function get isScale():Boolean { return _isScal; } public function set isScale(isScal:Boolean):void { this._isScal=isScal; } private function onDown():void { //按下,按钮进行缩...

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

104. laya.d3.core.MeshTerrainSprite3D_API3.0 [ 80%]

...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void clone clone(): Node Inherited from PixelLineSprite3D.clone Defined in laya/d3/core/Sprite3D.ts:296 克隆。 Returns Node 克隆副本。 contains contains(no...

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

105. 动画状态脚本(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 80%]

...tateScriptTest extends Laya.AnimatorStateScript { constructor() { super(); this._text = null; } get text() { return this._text; } set text(value) { this._text = value; } /** * 动画状态开始时执行。 */ onStateEnter() { console.log("动画开始播放了"); this._text.text = "动画状态:...

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

106. laya.device.media.Video_API3.0 [ 80%]

...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void contains contains(node: Node): boolean Inherited from Node.contains Defined in laya/display/Node.ts:536 当前容器是否包含指定的 Node 节点对象 ...

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

107. 颜色滤镜 差值变化 [ 80%]

...olorFilter = null; private _persent: number = 0; protected constructor() { this.targets = new Array<Laya.Sprite>(); } /** * 实例 */ public static getInstance(): ColorTool { if (ColorTool.instance == null) { ColorTool.instance = new ColorTool(); } return ColorTool.instance; }  /** * 添加...

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

108. 2.12.1.beta cannon.js 中 applyforce 无效Bug的补丁。 [ 80%]

...限嵌套。 修复如下      get angularVelocity() {         if (this._btColliderObject) {             var phtqua = this._btColliderObject.angularVelocity;  -           this.angularVelocity.setValue(phtqua.x, phtqua.y, phtqua.z);  +          this._angularVelocity.setValue...

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

109. 动画状态脚本(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 80%]

... _text:Laya.Text; constructor() { super(); } get text():Laya.Text { return this._text; } set text(value) { this._text = value; } /** * 动画状态开始时执行。 */ onStateEnter() { console.log("动画开始播放了"); this._text.text = "动画状态:动画开始播放"; } /** * 动画状态...

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

110. laya.display.Text_API3.0 [ 80%]

...模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 this.onInit(); } private onInit(): void { var text: laya.display.Text = new laya.display.Text();//创建一个 Text 类的实例对象 text 。 text.text = "这个是一个 Text 文本示例。"; text.color = "#008fff";//设...

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