大约有 778 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0094 秒)
Laya_社区(405) Laya2.0_文档(169) Laya_示例(108) Laya2.0_示例(67) Laya3.0_文档(16) Laya3.0_api(11) Laya2.0_api(2)
...avascript):var WebGL = laya.webgl.WebGL; Laya.init(1920, 1080, WebGL); function _OnMapCreate() { console.log("map create ..."); } var viewRect = new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height); var tMap = new Laya.TiledMap(); tMap.createMap("res/isometric_grass_and_water.json", vie...
来源: Laya_社区 发布时间: 20190102
...key/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.7071068, 0, 0, -0.7071067...
来源: Laya2.0_文档 发布时间: 20210714
...age { import laya.ani.bone.Skeleton; public class DragonBonesDemo { public function DragonBonesDemo() { //初始化舞台 Laya.init(1334, 750); //创建一个Skeleton对象 var skeleton:Skeleton = new Skeleton(); //添加到舞台 Laya.stage.addChild(skeleton); skeleton.pos(600,350); //通过加载...
来源: Laya2.0_文档 发布时间: 20210714
...terial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(tex) { material.albedoTexture = tex; })); box.meshRenderer.material = material; } } 附件 : --> laya1.rar 2020-10-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20201021
...vM7nH0Kl.m3u8'); hls.attachMedia(video); hls.on(Hls.Events.MANIFEST_PARSED,function():void{ video.play(); }); } plyr.setup(video); } } new LayaUISample; 编译运行代码,发现网页已经可以播放视频了。开发者可能注意到这里我们初始化引擎的时候是这样的: Laya.ini...
来源: Laya3.0_文档 发布时间: 20251010
...utils.Handler; import ui.EffectAnimationDemoUI; public class Main { public function Main() { //初始化舞台 Laya.init(1334,750); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" //加载图集资源,加载成功后添加到舞台 Laya.loader.load("./res/atlas/ui.atlas",Handler.create(this...
来源: Laya2.0_文档 发布时间: 20210715
...s/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { var hbox: laya.ui.HBox = new laya.ui.HBox(); for (var i: number = 0; i < 10; i++) { var skin: string; switch (i) { case 0: skin = "comp/bg.png"; break; case 1: skin = "comp/blank.png"; break; ca...
来源: Laya_社区 发布时间: 20170607
...aya.Texture2D.load("res/threeDimen/layabox.png", Laya.Handler.create(this, function (tex) { var radius = new Laya.Vector3(0, 0, 1); var radMatrix = new Laya.Matrix4x4(); var circleCount = 50; var boxMesh = Laya.PrimitiveMesh.createBox(0.02, 0.02, 0.02); var boxMat = new Laya.BlinnPhongMaterial();...
来源: Laya_社区 发布时间: 20191112
...uot;); bt.on(Laya.Event.CLICK, this, this.click); Laya.stage.addChild(bt); function click() { console.log("??????????"); } 点击之后没有翻译,按钮也没有点击的动画 cuixueying • 2017-04-24 11:07 我们测试是OK的,你的button的skin有提前预加载吗,可以提...
来源: Laya_社区 发布时间: 20170421
...摇报错,就解决方案 导微信小程序报错window.focus is not a function 问题状态 最新活动: 2021-12-08 14:57 浏览: 3698 关注: 2 人 northTg • 2021-12-09 11:09 非常感觉提供帮助 ,我这边提供demo的时候发现最新的库是没有问题的 换掉全部相关库后...
来源: Laya_社区 发布时间: 20211207