大约有 261 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0062 秒)
Laya_社区(66) Laya3.0_api(61) Laya2.0_api(57) laya_api(53) Laya2.0_文档(12) Laya2.0_示例(5) Laya3.0_文档(4) Laya_示例(3)
...AS语言来创建项目。代码如下: ```java package { import laya.display.Sprite; public class LayaUISample { public function LayaUISample() { //初始化引擎 Laya.init(600, 400); Laya.stage.bgColor ="#cccccc"; var data:String= "data:image/svg+xml,"+'' + '' + '' + 'I like ' + '' + 'cheese' +...
来源: Laya2.0_文档 发布时间: 20210715
...xhtml" style="font-size:40px">' + '<em>I</em> like ' + '<span style="color:white; text-shadow: 0px 1px 0px #999, 0px 2px 0px #888, 0px 3px 0px #777, 0px 4px 0px #666, 0px 5px 0px #555, 0px 6px 0px #444, 0px 7px 0px #333, 0px 8px 7px #001135;">' + 'cheese</span>' + '</di...
来源: Laya3.0_文档 发布时间: 20251010
...e/svg+xml," + '' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp: Laya.Sprite = new Laya.Sprite(); sp.loadImage(data, 0, 0, 200, 200); Laya.stage.addChild(sp); } } new LayaUISample; ``` 通过data来当做url传递给loadImage这个方法引擎就会帮我们加载并解码显示出来...
来源: Laya2.0_文档 发布时间: 20210715
...tate(new Vector3(-30, 0, 0), true, false); //添加地板 var floor:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createPlane(10, 2000, 100, 100))) as MeshSprite3D; //给地板添加物理组件 var floorCollicar:PhysicsCollider = floor.addComponent(PhysicsCollider); // 添加colli...
来源: Laya_社区 发布时间: 20190417
一个没有动作的骨骼动画 替换插图没有用 sp(){ this.skebqb = new Laya.Skeleton(SkeTemp.tempbqb, 1); this.skebqb.play(4, false); this.skebqb.on(Laya.Event.STOPPED,this,this.changeSkin); this.owner.addChild(th...
来源: Laya_社区 发布时间: 20201231
...数即可,譬如如下 var ease:*=Ease.backIn(100,100,100,100); Tween.to(sp,{x:400},1000,ease,Handler.create(this,onTween)); 2017-01-05 0 0 分享 微博 QZONE 微信 shaotianhk 赞同来自: var ease:*=Ease.backIn(100,100,100,100); 这句是什么鬼,放在js里直接报错 2018-04-02 0 0 分...
来源: Laya_社区 发布时间: 20170105
加载TiledMap 不显示 import Sprite = Laya.Sprite; import Stage = Laya.Stage; import MapLayer = Laya.MapLayer; import TiledMap = Laya.TiledMap; import Point = Laya.Point; import Rectangle = Laya.Rectangle; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export...
来源: Laya_社区 发布时间: 20201230
...Font、FontSize、Color、下划线 【注意,不支持斜体、描边、span标签内嵌的方式】 示例如下: var div:HTMLDivElement=new HTMLDivElement(); div.innerHTML="<span style='font-weight:bold;" + "font:24px Arial' " + "color='red' " + "href='www.baidu.com'>" + "LayaBox</sp...
来源: Laya_社区 发布时间: 20161027
... touches[0].stageX - touches[1].stageX); this.sp.rotation += 180 / Math.PI * (nowRadian - this.preRadian); length==2就是两根手指, 把他改成你想要的数量不久可以了么,他不是根据mousex,y;而是根据 touches[0].stageY - touches[1].stageY,...
来源: Laya_社区 发布时间: 20171201
...-------------------- 运行layaair-cmd compile 后报下面的错误。 sp.stdout.on("data", this.emitStdout.bind(this)); ^ TypeError: Cannot read property 'on' of undefined at LayaProjectCompiler.compile (/usr/lib/node_modules/layaair-cmd/compile_project.js:70:14) a...
来源: Laya_社区 发布时间: 20180514