大约有 6,598 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0152 秒)
Laya_社区(5247) Laya3.0_api(482) Laya2.0_文档(363) Laya_示例(154) Laya2.0_示例(116) Laya3.0_文档(105) Laya2.0_api(67) laya_api(64)
...neTo destroy setMargin updateLocalTransformations Constructors constructor new HeightfieldTerrainShape(heightfieldData: Uint16Array | Float32Array | Uint8Array, heightStickWidth: number, heightStickLength: number, minHeight: number, maxHeight: number, heightScale: number): HeightfieldTerrainShape Ov...
来源: Laya3.0_api 发布时间: 20231115
...]); } private AddChat(seat:number, name:string, txt:string) { let paopao = new ui.langren.room.SayBoardUI(); paopao.x = 10; paopao.lbSayName.text = name; let div:Laya.HTMLDivElement = new Laya.HTMLDivElement(); div.style.lineHeight = 36; div.style.fontSize = 26; div.style.valign = "middle"; // div.s...
来源: Laya_社区 发布时间: 20170911
...te));//加载资源。 } private function onLoadComplete():void { dialog = new Dialog_Instance();//创建一个 Dialog_Instance 类的实例对象 dialog。 dialog.dragArea = "0,0,150,50";//设置 dialog 的拖拽区域。 dialog.show();//显示 dialog。 dialog.closeHandler = new Handler(this, onCl...
来源: Laya3.0_api 发布时间: 20231115
...er.autoCacheFile || isSaveFile) { MiniFileMgr.copyFile(filePath, readyUrl, new Laya.Handler(MiniFileMgr,MiniFileMgr.copyFileCallback,[callBack,data]), encoding, isAutoClear); } else callBack != null && callBack.runWith([0, data]); } else callBack != null && callBack.runWith([0, data]...
来源: Laya_社区 发布时间: 20200103
...ion drawSomething():void { sp = new Sprite(); Laya.stage.addChild(sp); //画三角形 sp.graphics.drawPoly(30, 28, [0, 100, 50, 0, 100, 100], "#ffff00"); ...
来源: Laya2.0_文档 发布时间: 20210714
...背景色是黑色的 Laya.init(600, 300); var txt:Text = new Text(); //设置文本内容 txt.text = "Hello Layabox"; //设置文本颜色为白色,默认颜色为黑色 txt.color = '#ffffff'; //将文本内容添加...
来源: Laya2.0_文档 发布时间: 20210715
... } private function onLoaded():void { trace("加载成功"); var c:Image = new Image("rank/country.png"); Laya.stage.addChild(c); } 以上是子域项目中加载图集和取资源的代码。代码是参照 https://ask.layabox.com/question/15086 这个帖子的。 图集加载是ok的,但是...
来源: Laya_社区 发布时间: 20180830
...oaded():void{ //实例化导出的UI类 var efc:ui.EffectAnimationDemoUI = new ui.EffectAnimationDemoUI(); //添加到舞台 Laya.stage.addChild(efc); } }new Main(); ``` 运行后,按钮被按下时,动画效果如动图11所示: (图11) ### 4、多个动效模板创建复杂...
来源: Laya2.0_文档 发布时间: 20210715
...舞台大小 Laya.init(400,852); // 创建循环滚动的悲剧 this.bg = new BackGround(); // 把背景添加到舞台 Laya.stage.addChild(this.bg); // 加载图集资源 Laya.loader.load("res/atlas/war.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })(); function onLoaded(){ // ...
来源: Laya_社区 发布时间: 20170525
...n); skeleton.play(0,true); rectangle = skeleton.getBounds(); var hitArea = new Laya.HitArea(); var graphic = new Laya.Graphics(); graphic.drawRect(-rectangle.x, -rectangle.y, rectangle.width, rectangle.height); hitArea.hit = graphic; skeleton.hitArea = hitArea; Laya.stage.graphics.drawRect(-rectangl...
来源: Laya_社区 发布时间: 20171114