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

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

451. ShaderPass介绍(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 51%]

...men/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", Laya.Handler.create(this, function(mesh) { var layaMonkey = scene.addChild(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071...

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

452. Button属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 51%]

...下代码:** ```java package { import laya.ui.Button; import laya.utils.Handler; import laya.webgl.WebGL; public class ComponentDemo { //按钮资源路径 private var skin:String = "./res/img/btn_test.png"; public function ComponentDemo() { //初始化引擎,设置宽高并开启WebGL渲染模...

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

453. TiledMap地图 · LayaAir3.3 · 引擎文档 · LAYABOX [ 51%]

...is.tMap.createMap("resources/TiledMap/orthogonal.json", viewRect, new Laya.Handler(this, this.completeHandler)); } //添加地图到Scene2D下 private onLoaded(): void { this.tMap.mapSprite().removeSelf(); this.owner.addChild(this.tMap.mapSprite()); } //地图加载完成的回调 private completeHa...

来源: Laya3.0_文档 发布时间: 20251010

454. 调用动画结束on方法,报错this.zombieAnimator.on is not a function [ 50%]

...例3D Laya.Sprite3D.load("res/threeDimen/skinModel/Zombie/Zombie.lh", Laya.Handler.create(this, function(zombie:Laya.Sprite3D):void { scene.addChild(zombie); this.zombieAnimator = (zombie.getChildAt(0) as Laya.Sprite3D).getComponent(Laya.Animator) as Laya.Animator;//获取Animator动画组件 this.z...

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

455. 对游戏中各种控件字体样式使用“白鹭style”样式表 [ 50%]

...; item.progress = 0; totalSize += item.size; items.push(item); var progressHandler = progress ? Laya.Handler.create(null, loadProgress, [item], false) : null; var completeHandler = (complete || progress) ? Laya.Handler.create(null, loadComplete, [item]) : null; this.load(item.url, completeHandler, p...

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

456. [BUG]刚体约束问题,移动后约束混乱! [ 50%]

...l();     Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function (tex) {       planeMat.albedoTexture = tex;     }));     //设置纹理平铺偏移     var tilingOffset = planeMat.tilingOffset;     tilingOffset.setValue(5, 5,...

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

457. 缓动动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 50%]

... ```java Laya.Tween.to(letterText, { y : 300 }, 1000, Laya.Ease.bounceIn, Handler.create(this,changeColor,[letterText]), i * 100); ``` 由于需要增加新的引用,这次贴出全部的示例代码。 TweenDemo.js: ```javascript //初始化舞台 Laya.init(1334,750,Laya.WebGL); //背景颜色 ...

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

458. HttpRequest 回调方法都没执行 LayaAir 1.7.17 beta JS版本 [ 50%]

...s" , type : Laya.Loader.ATLAS} ]; Laya.loader.load(resourceArray,Laya.Handler.create(null,loadResourceComplete)); } function loadResourceComplete() { Laya.stage.addChild(new LoginView()); } })(); feiguangfu • 2018-03-16 09:55 这个是主的JS. 数据服务器都能正常接收,但是返回...

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

459. 简单粒子效果,发布成单机版apk在移动端安装运行,结果显示不出来 [ 50%]

.../?Particle_T1  ) 主要就是: Laya.loader.load("SnowParticle.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON);           public function onAssetsLoaded(settings:ParticleSetting):void         {             sp = new Particle2D(settings);            ...

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

460. 微信小游戏中iPhoneX的适配问题 [ 49%]

...使用drawTexture Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape); ape.pos(200, 0); })); kezhiyu • 2018...

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