大约有 820 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0061 秒)
Laya_社区(493) Laya2.0_文档(93) Laya3.0_api(91) Laya2.0_api(57) laya_api(53) Laya3.0_文档(22) Laya2.0_示例(7) Laya_示例(4)
...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
...Box。我用List对其进行渲染,在list渲染的时候,执行renderHandler监听函数,对即将渲染的图标进行事件绑定操作。我测试的时候,想让他在鼠标点击的时候打印 test ,但是没反应。 代码如下:private function showFoods():void{ foodSprite ...
来源: Laya_社区 发布时间: 20180407
...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
...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
...载场景人物腳色 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
...布VIVO后,加载骨骼动画SK文件不成功,没有任何响应 Laya.Handler为什么注册不成功? 发布不成功,无法生成layaUI.max.all.js文件。 打包突然不成功。RangeError: Invalid string length at encodeURIComponent () at Function.SMD5.str2rstrUTF8 ide和引擎都是2....
来源: Laya_社区 发布时间: 20170309
...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
...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
....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
...反射贴图 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