大约有 911 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0048 秒)
Laya_社区(494) Laya2.0_文档(153) Laya3.0_api(61) Laya2.0_api(57) laya_api(53) Laya_示例(37) Laya3.0_文档(32) Laya2.0_示例(24)
...种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Text = Laya.Text; var Shake = Laya.Shake; var Browser = Laya.Browser; var Handler = Laya.Handler; var picW = 824; var picH = 484; var console; var shakeCount = 0; (function() { ...
来源: Laya_示例 发布时间: 20251130
... 'btCollisionObject' of undefined IDE1.7.8 json图集加载问题 new Laya.Sprite();绘制图形以后,怎么删除释放资源? Animation 的createFrames 使用已经加载的图集缓存动画失败 编辑了图片 执行代码说加载不出来资源 这个是怎么回事? 请问一下怎...
来源: Laya_社区 发布时间: 20170923
调用图集中小图片失败 var sp:Sprite=new Sprite(); sp.loadImage("img/btnbg2.png"); Laya.stage.addChild(sp); var sp1:Sprite=new Sprite(); sp1.loadImage("system/twoP.png"); Laya.stage.addChild(sp1); img图集中的小图可以调用到,system的图集调用不到,在浏览器的资源列表...
来源: Laya_社区 发布时间: 20170518
...(图形组件):image_xxx; 不是以上规则的,都会被识别为Sprite。 下面是示例组件图片: (图1) 对应在资源管理器中显示为: (图2) ### 特殊组件: 特殊组件需要多张图片组成,命名规则在遵守上面规则的基础...
来源: Laya2.0_文档 发布时间: 20210714
...l, function(tex) { //使用纹理 var earth1 = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere(5, 32, 32))); earth1.transform.translate(new Laya.Vector3(10, 20, -8)); var earthMat = new Laya.BlinnPhongMaterial(); earthMat.albedoTexture = tex; earthMat.albedoIntensity = 1; earth1...
来源: Laya2.0_文档 发布时间: 20210715
...ion () { LoadResource.prototype.init = function () { this._container = new Sprite(); Laya.stage.addChild(this._container); Laya.loader.load(["../bin/res/ui/progressBar.png", "../bin/res/ui/progressBar$bar.png"], Handler.create(this, this.onPreloaded)); }; LoadResource.prototype.onPreloaded = functio...
来源: Laya_社区 发布时间: 20200924
...址](https://layaair.ldc.layabox.com/demo2/?language=ch&category=3d&group=Sprite3D&name=TransformDemo))代码,首先我们 **克隆** 两个猴子(克隆的知识点会在精灵Sprite3D的章节详细讲解),来看下效果,并且在克隆后为了方便观察我们2个猴子的位置。...
来源: Laya2.0_文档 发布时间: 20210714
...Pic(); this.showConsoleText(); this.startShake(); } showShakePic() { const Sprite = Laya.Sprite; let shakePic = new Sprite(); shakePic.loadImage("res/inputDevice/shake.png"); Laya.stage.addChild(shakePic); } showConsoleText() { const Text = Laya.Text; console = new Text(); Laya.stage.addChild(consol...
来源: Laya2.0_示例 发布时间: 20251130
... y); } tick += 0.1; } } new PerformanceTest_Maggots();module laya { import Sprite = Laya.Sprite; import Browser = Laya.Browser; import Handler = Laya.Handler; import Stat = Laya.Stat; import Rectangle = Laya.Rectangle; import WebGL = Laya.WebGL; export class PerformanceTest_Maggots { private texture...
来源: Laya2.0_示例 发布时间: 20251130
...es/atlas/comp.json', Handler.create(this, function(){ container = new Laya.Sprite(); var x = 0,y =80; Laya.stage.addChild(container); for(var i=0;i<1200;i++){ var role = new Laya.Sprite(); x = x+0.1; y = y+0.1 role.x = x; role.y = y; role.loadImage('comp/bg.png'); container.addChild(role); var ro...
来源: Laya_社区 发布时间: 20180122