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

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

251. image.drawToCanvas方法获取的一直是空的png [ 52%]

...{ img=new Image(); img.skin="res/logo.png"; Laya.stage.addChild(img); Laya.timer.once(500,this,onClick); //Laya.stage.on(Event.CLICK,this,onClick); } private function onClick():void { var htmlCanvas:HTMLCanvas=img.drawToCanvas(100,100,0,0) as HTMLCanvas; var texture:Texture=new Texture(htmlCanvas); ...

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

252. laya.display.Animation [ 52%]

...据;"url#aniName":表示相应名称的动画模版。 Animation clearTimer(caller:*, method:Function):void 清理定时器。功能同Laya.timer.clearTimer()。 Node contains(node:Node):Boolean 当前容器是否包含指定的 Node 节点对象 。 Node  createFrames(url:*, name:String):Ar...

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

253. 物体每帧y方向移动,超出屏幕高度消失,可还没有超出屏幕高度就提前消失了! [ 52%]

...同的页面------------- _proto.run = function () { this.speed = 1; Laya.timer.frameLoop(1, this, () => { console.log(this.obstacle0.y, Laya.Browser.height); //this.obstacle0是一个精灵对象 this.obstacle0.y += this.speed; if (this.obstacle0.y > Laya.Browser.height) { this.obstacle0.remo...

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

254. laya.ui.HBox_API3.0 [ 52%]

...scaleX scaleY scene scrollRect skewX skewY space stage staticCache texture timer toolTip top transform url viewport visible width x y zOrder Methods _initialize _processActive _setHeight addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains custo...

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

255. laya中怎样使用jQuery写广告轮播 [ 52%]

...,就不用什么第三方js了,用几个显示对象,然后加一个timer,定期的移动显示对象的位置就可以实现你的需求 2018-08-31 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 假装不食烟火 相关问题 ...

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

256. laya.html.dom.HTMLIframeElement_API3.0 [ 52%]

...scaleX scaleY scene scrollRect skewX skewY stage staticCache style texture timer transform url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addInputChild callLater clearTimer contains customRender destroyChildr...

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

257. laya.ui.Dialog [ 52%]

...被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer。Node toolTip : * 鼠标悬停提示。 可以赋值为文本 String 或函数 Handler ,用来实现自定义样式的鼠标提示和参数携带等。 Component top : Nu...

来源: laya_api 发布时间: 20170929

258. laya.html.dom.HTMLDivElement_API3.0 [ 51%]

...scaleX scaleY scene scrollRect skewX skewY stage staticCache style texture timer transform url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addInputChild callLater clearTimer contains customRender destroyChildr...

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

259. 高级应用-寻路导航 [ 51%]

...ntCount].x, this.path[this.nextPathIndex++ % this.pointCount].z); }); Laya.timer.loop(40, this, loopfun); } function loopfun() { if (this._everyPath && this.index ; private _everyPath: any; private _position: Laya.Vector3 = new Laya.Vector3(0, 0, 0); private _upVector3: Laya.Vector3 = new Laya.Vecto...

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

260. laya.ui.ProgressBar_API3.0 [ 51%]

...tage.addChild(progressBar);//将 progressBar 添加到显示列表。 Laya.timer.once(3000, this, changeValue);//设定 3000ms(毫秒)后,执行函数changeValue。 } private function changeValue():void { trace("改变进度条的进度值。"); progressBar.value = 0.6; } private function onCh...

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