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

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

331. Laya.BlinnPhongMaterial.RENDERMODE_TRANSPARENT设置透明度不行了? [ 63%]

...nnPhongMaterial();         Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) {             material.albedoTexture = tex;         }));         material.albedoColor = new Laya.Vector4(1.0, 1.0, 1.0, 0.5);         material.renderMode =...

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

332. 【求助】怎么在自定义对象进行实例化的时候,给它绑定监听事件 [ 63%]

...Box。我用List对其进行渲染,在list渲染的时候,执行renderHandler监听函数,对即将渲染的图标进行事件绑定操作。我测试的时候,想让他在鼠标点击的时候打印  test  ,但是没反应。 代码如下:private function showFoods():void{ foodSprite ...

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

333. 如何实现类似AS3下的BitmapData.draw去截取区域图片? [ 63%]

...play.Sprite;     import laya.resource.Texture;     import laya.utils.Handler;     public class CupPhone     {         public function CupPhone()         {             Laya.init(550,400);             Laya.loader.load("walk.png",Handler.create(this,onLoaded));...

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

334. 读取json对象 [ 63%]

...rr:Array = new Array();             Laya.loader.load("test.json", Handler.create(this, onLoaded), null, Loader.ATLAS);             //var json:JSON = Loader.getRes("test.json");             //trace(json);         }                      function onLoaded...

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

335. rigidBody.applyForce 物体不会移动 [ 63%]

...载场景人物腳色 Laya.Scene3D.load( "res/build5/SampleScene.ls", Laya.Handler.create(this, this.onComplete) ); //射线初始化(必须初始化) this._ray = new Laya.Ray( new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0) ); //初始化变量 this.point = new Laya.Vector2(); this._outHit...

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

336. ByteArray写入ArrayBuffer不成功 [ 63%]

...布VIVO后,加载骨骼动画SK文件不成功,没有任何响应 Laya.Handler为什么注册不成功? 发布不成功,无法生成layaUI.max.all.js文件。 打包突然不成功。RangeError: Invalid string length at encodeURIComponent () at Function.SMD5.str2rstrUTF8 ide引擎都是2....

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

337. TS setExternalLinkEx問題 [ 63%]

...Laya.WebGL; import Stage = Laya.Stage; import Button = Laya.Button; import Handler = Laya.Handler; import Loader = Laya.Loader; import Event = Laya.Event; import Browser = Laya.Browser; export class GameMain{   constructor() {  Browser.window.conch && Browser.window.conch.showAssistantTouc...

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

338. timeline播放完成Bug [ 63%]

...ttps://layaair2.ldc2.layabox. ... 3B%3B Laya.loader.load(monkey1Path, Laya.Handler.create(this, function() { let monkey = Laya.loader.getRes(monkey1Path); let ape = new Laya.Sprite(); Laya.stage.addChild(ape); ape.graphics.drawTexture(monkey, 0, 0); var tl = new Laya.TimeLine(); tl.once('complete', ...

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

339. ui.TestPUI() 找不到 [ 63%]

....bgColor = "#ffffff"; Laya.loader.load("./res/atlas/blackMagic.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ var efc =new ui.TestPUI(); Laya.stage.addChild(efc); } //new ui.TestPUI(); 这个东西找不到。我是按照官方文档动效模板来操作的。     2019-04-24 添...

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

340. BlinnPhong材质详解(JavaScript-3D基础(JS)-模型材质详解) [ 63%]

...反射贴图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置材质纹理 material.albedoTexture = texture; })); earth2.meshRenderer.material = material; ``` ![](img/4.png)(图4) ##### 法线贴图 **Normal maps(法线贴图)**是一个...

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