大约有 6,598 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0142 秒)
Laya_社区(5247) Laya3.0_api(482) Laya2.0_文档(363) Laya_示例(154) Laya2.0_示例(116) Laya3.0_文档(105) Laya2.0_api(67) laya_api(64)
...imation), null, Laya.loader.ATLAS); function createAnimation() { var ani = new Laya.Animation(); ani.loadAtlas(AniConfPath); ani.interval = 30; ani.index = 1; ani.play(); Laya.stage.addChild(ani); } 2017-09-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...
来源: Laya_社区 发布时间: 20170920
...wToCanvas(btn_edit.width, btn_edit.height, 0, 0); var interceptT:Texture = new Texture(htmlC); var img:Sprite = new Sprite; img.graphics.drawImage(interceptT, 0, 0, btn_edit.width, btn_edit.height); Laya.stage.addChild(img); 如图和代码(一个按钮点击后draw图然后加入stage) 只...
来源: Laya_社区 发布时间: 20190422
...这样写,形状都变了呢? meshbox.transform.worldMatrix.setForward(new Laya.Vector3(1, -1, 1)); 附件 : --> 2019-09-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 aplsong 赞同来自: directi...
来源: Laya_社区 发布时间: 20190926
...ass TTFTest { public function TTFTest() { Laya.init(550,400); var sp:Image=new Image(); sp.loadImage("2.png"); Laya.stage.addChild(sp); var text:Text=new Text(); text.fontSize=40; text.color="#FF00FF"; text.text="哈哈哈哈哈哈哈哈哈哈哈哈哈哈"; text.font="hu" text.pos(600,600); Laya.sta...
来源: Laya_社区 发布时间: 20160514
...function(res){ Laya.stage.addChild(res); //用于挂点的精灵 var box = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this, function(tex) { material.albedoTexture = tex; })); box...
来源: Laya2.0_文档 发布时间: 20210715
...function(res){ Laya.stage.addChild(res); //用于挂点的精灵 var box = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this, function(tex) { material.albedoTexture = tex; })); box...
来源: Laya2.0_文档 发布时间: 20210714
... Laya.init(Laya.Browser.width, Laya.Browser.height, Laya.WebGL); var sp = new Laya.Sprite(); Laya.stage.addChild(sp); sp.loadImage("res/img/popular.png", 0, 0, 0, 0, Laya.Handler.create(this, function (a1, a2) { console.log(a1, a2); }), [100]); 为什么不能把Laya.Hander.create后面带的这...
来源: Laya_社区 发布时间: 20180621
...理碰撞 OnTriggerEnter 第三个参数 contact.getHitInfo() 报错 new this.box2d box2d 是undefined 请问这里的 this 指向是 ?? contact.getHitInfo = function () { var manifold = new this.box2d.b2WorldManifold(); this.GetWorldManifold...
来源: Laya_社区 发布时间: 20220819
...回复问题请先登录 发起人 oy2419498011 相关问题 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 Layabox 2.0 bate5 运行编译之后 bundle.js 文件里面没有使用命名空间类文件的定义!导致运行时 找不到类的定...
来源: Laya_社区 发布时间: 20180129
... void testAsyncCallback(String json) { //js thread try { JSONObject root = new JSONObject(json); Log.d("JSBridge", "java: " + root.getString( "value" )); } catch (JSONException e) { e.printStackTrace(); } m_Handler.post( new Runnable() { public void run() { //ui thread update ui JSONObject obj = new...
来源: Laya3.0_文档 发布时间: 20250422