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

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

1. bind函数的作用 [ 100%]

...otoLoaded.bind(this)); a15715740412 • 2018-01-30 16:31 /** * For a given function, creates a bound function that has the same body as the original function. * The this object of the bound function is associated with the specified object, and has the specified initial parameters. * @param thisArg A...

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

2. Laya 绑定显示内容到骨骼动画 [ 91%]

...阵的方法 //返回变化矩阵     __proto.getResultMatrixByFrame=function(index){         var matrix=this._resultMatrixCache[index];         if(matrix){             return matrix;         }         return this.resultMatrix;     }   2. Bone ...

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

3. timer无法用clear清除的BUG [ 87%]

...p函数用this绑定时,clear无法清除 ,clearAll可以清除 public function startLoop() {       Laya.timer.loop(2000,this,this.onLoop.bind(this)); }   private function onLoop():void {     if(this.stop){         Laya.timer.clear(this,this.onLoop.bind(this));  //     } } ...

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

4. 类未找到方法 [ 83%]

类未找到方法 public class Welcome extends welcomeUI { public function Welcome() { requestData(); } private function requestData():void{ RequestConfig.instance.getRequestConfig(String(0), requestCallback); } private function requestCallback(success:Boolean):void { if(success) { loadingRes(); }...

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

5. 发布原生 ios/android 的渲染问 题 [ 81%]

...更新_cnavas相关的状态     */     __proto._checkCanvasEnable=function(){         var tEnable=this._cacheStyle.needEnableCanvasRender();         this._getCacheStyle().enableCanvasRender=tEnable;         if (tEnable){             if (this._cacheStyle.n...

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

6. 输入设备-地图 [ 78%]

...ipt、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Stage = Laya.Stage; var Text = Laya.Text; var Geolocation = Laya.Geolocation; var Position = Laya.Position; var Browser = Laya.Browser; var Handler = Laya.Handler; // 百度地图 var map; var marker; var BMa...

来源: Laya_示例 发布时间: 20240930

7. 【官网代码】加载dom音频报错,怎么回事? [ 77%]

...rivate var analyser:Object;private var audioBufferSourceNode:Object;public function Main(){Laya.init(500,500);AudioContext =Browser.window.AudioContext || Browser.window.webkitAudioContext;audioContext = new AudioContext();analyser = audioContext.createAnalyser();analyser.fftSize = 256;Laya.stage.on...

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

8. 输入设备-地图 [ 75%]

...onvertor(); // Div private var mapDiv:*; private var infoText:Text; public function InputDevice_Map() { Laya.init(Browser.width, 255); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; createDom(); initMap(); createInfoText(); var successHandler:Handler = new Handler(this, updatePosition); var errorHandle...

来源: Laya2.0_示例 发布时间: 20240930

9. 提示 is not function [ 71%]

提示 is not function 我都有定义 这方法 ···呀 附件 : --> 2017-02-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: 你应该是执行域改变导致的,默认as3环境下执...

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

10. 在Unity中设置动画事件(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 67%]

...Scene_AnimationEvent/Conventional/layaScene.ls", Laya.Handler.create(this, function(scene) { Laya.stage.addChild(scene); //获取cube对象 var cube = scene.getChildByName("Cube"); //添加组件(脚本) var _script = cube.addComponent(SceneScript); //label用于显示 var _lab = new Laya.Label(); _...

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