大约有 3,979 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0073 秒)
Laya_社区(2827) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(53)
...果可以当作图片源,再次绘制到其他Sprite里面,示例: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var texture:Texture = new Texture(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精...
来源: laya_api 发布时间: 20170929
...n PanelElastic() { Laya.init(800,600,WebGL); Laya.stage.bgColor="#EEFFCC"; var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,300,300,"#FFFF00"); sp.size(100,100); sp.on(Event.CLICK,this,onClickSp); Laya.stage.addChild(sp); var spchild:Sprite=new Sprite(); spchild.graphics.drawRect(0,0,200,200,"#F...
来源: Laya_社区 发布时间: 20170918
...点击事件啊?而且tab标签点击后没有一直处于按下状态 var Loader = laya.net.Loader; var UI; Laya.init(600, 400); Laya.loader.load("res/atlas/template/Tab栏.json", Laya.Handler.create(this, onAssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() { Laya.class(MyBoot, ...
来源: Laya_社区 发布时间: 20160722
...this, this.onLoaded)); } private onLoaded(): void { //实例化Panel组件 var panel: Laya.Panel = new Laya.Panel(); //给panel添加背景色 panel.graphics.drawRect(0, 0, 100, 100, "#ffcccc"); //给panel设置宽高 panel.size(100, 100); //给panel设置滚动条皮肤 panel.vScrollBarSkin = "comp...
来源: Laya2.0_文档 发布时间: 20210715
...码,辛苦了! 这个事件是挂在ShurikenParticleSystem上的。 var wjqs:Sprite3D = scene.addChild(Sprite3D.load("fff.lh")) as Sprite3D; wjqs.once(Event.HIERARCHY_LOADED, this, function():void { var aaa:ShurikenParticleSystem = wjqs.getChildAt(0).getChildAt(0).particleSystem; aaa.on(Event....
来源: Laya_社区 发布时间: 20170512
... class ListView extends ListViewUI { public function ListView() { super(); var arr:Array=[]; for(var i:int=0;i<95;i++) { arr.push({icon:i,label:"Index"+i}); } boxList.array=arr; boxList.mouseHandler=new Handler(listRender); } private function listRender(e:MouseEvent,index:int):void { // TODO Auto...
来源: Laya_社区 发布时间: 20151224
....transform.translate(new Laya.Vector3(10, 0, 0), true); // 刷新下数值 var temp = bobo.transform.localRotationEuler; // 再进行修改 bobo.transform.localRotationEulerX = 0;方案二:在laya.d3.js中,在set localRotationEulerX、set localRotationEulerY、set localRotationEulerZ等属性方...
来源: Laya_社区 发布时间: 20210808
...为简单demo,快一点,但是比起WEB 还是慢了7倍以上。 var loadList: Array<string> = [];//70张图片 for (let i = 1; i < 70; i++) { loadList.push("resources/test/a ("+i+").png"); } let nt = Date.no...
来源: Laya_社区 发布时间: 20240628
... renderMode(value:int):voidSHADERDEFINE_DETAIL_NUM1property public static var SHADERDEFINE_DETAIL_NUM1:int地形细节宏定义。SHADERDEFINE_DETAIL_NUM2property public static var SHADERDEFINE_DETAIL_NUM2:intSHADERDEFINE_DETAIL_NUM3property public static var SHADERDEFINE_DETAIL_NUM3:intSHADERDEF...
来源: Laya2.0_api 发布时间: 20190513
...aya.Rectangle = new Laya.Rectangle(0, 0, 60, 30); constructor() { super(); var _fish: Laya.Sprite = new Laya.Sprite() _fish.graphics.drawRect(this.are.x, this.are.y, this.are.width, this.are.height, "#00ff00"); _fish.x = 300 _fish.y = 200 this.addChild(_fish); Laya.timer.loop(100, this, function () ...
来源: Laya_社区 发布时间: 20180315