大约有 2,289 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0087 秒)
Laya_社区(1682) Laya2.0_文档(140) Laya3.0_api(124) Laya2.0_api(97) Laya3.0_文档(80) laya_api(69) Laya_示例(52) Laya2.0_示例(45)
分享:LayaAir实现曲线运动 2016-04-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 详细代码如下,具体demo已上传附件 package { import laya.display.Sprite; public c...
来源: Laya_社区 发布时间: 20160424
...** html对象 */ html: HTMLDivElement /** 滚动框的宽度 */ defaultX = 1110 /** 动画是否出于播放状态 */ isPlayIng:boolean = false /** 空格 */ private space:string = "<span> </span>" constructor() { super() this.width = 12...
来源: Laya_社区 发布时间: 20180314
[LayaAir3]在3.1.x版本 linearVelocity 不能设置初始速度 在3.1.0 和 3.1.1版本,设置linearVelocity失效,无法设置初始速度。 相同工程,使用旧版本 3.0.11仍可以正常设置linearVelocity。 附件 : --> 2024-03-20 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20240320
...400,Laya.Tween.cubicOut,0) .addLabel("ZoomOut",0).to(share.btShare,{scaleX:1.0, scaleY:1.0},400,Laya.Tween.cubicOut,0); timeLine.play(0,true); 然后循环创建依次执行ui的延迟动画 Laya.Tween.to(point,{x:point.x,y:point.y,alpha:1,update:Laya.Handler.create(point,function(){ this.visible = ...
来源: Laya_社区 发布时间: 20180118
...minalX = 200; let characterA = this.createCharacter("res/cartoonCharacters/1.png"); characterA.pivot(46.5, 50); characterA.y = 100; let characterB = this.createCharacter("res/cartoonCharacters/2.png"); characterB.pivot(34, 50); characterB.y = 250; Laya.stage.graphics.drawLine(terminalX, 0, terminalX...
来源: Laya2.0_示例 发布时间: 20260106
... return t; } function animateTimeBased() { rotateTimeBasedText.rotation += 1; } function animateFrameRateBased() { rotateFrameRateBasedText.rotation += 1; } })();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class T...
来源: Laya_示例 发布时间: 20260106
...(value){ if (value.x < 0 || value.y < 0 || (value.x+value.width)> 1 || (value.y+value.height)> 1) throw new Error("Camera: viewport size invalid.","value"); this._viewportExpressedInClipSpace=true; this._normalizedViewport=value; this._calculateProjectionMatrix(); });请问 normalizedVie...
来源: Laya_社区 发布时间: 20170601
...项目开发更高效。let texturePath = "res/tinyMaggot.png", padding = 100, maggotAmount = 5000, tick = 0, maggots = [], wrapBounds, maggotTexture; class PerformanceTest_Maggots { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Lay...
来源: Laya2.0_示例 发布时间: 20260106
...用普通资源加载耗时2798毫秒 demo用例 https://github.com/lear315/layazip-demo使用方法Laya 2.x及以下版本 下载扩展包laya-zip 解压后,将laya-zip.js文件放入项目bin/libs/文件夹下,将laya-zip.d.ts文件放入项目libs/文件夹下,在bin/index.js文件中加载...
来源: Laya_社区 发布时间: 20230316
...ayer = this.tMap.getLayerByIndex(9); var gs = layer.getObjectByName('others1'); var sp: Laya.Sprite = new Laya.Sprite(); sp.loadImage("res/smallWalkRight.png"); sp.pos(gs.x, gs.y); layer.addChild(sp); } } new GameMain();sprite显示出了整张图片: 附件 : --> 2019-02-14 添加评论 免费...
来源: Laya_社区 发布时间: 20190214