大约有 2,310 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0062 秒)
Laya_社区(1513) Laya2.0_文档(259) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(80) Laya3.0_文档(75) Laya2.0_api(74) laya_api(70)
... createImg(w,h){ var Img = new Laya.Sprite(); //添加到舞台 Laya.stage.addChild(Img); //加载显示图片 Img.loadImage("res/tt.png",w,h); return Img; } /**创建红色滤镜位图方法**/ function creteRedFilter(){ //颜色滤镜矩阵,红色 var colorMatrix = [ 1, 0, 0, 0, 0, //R 0, 0, 0, 0,...
来源: Laya_社区 发布时间: 20170811
...radiusX, radiusY, 0, radiusY * 2, color); Laya.stage.addChild(this.sprite); } // private createMap (): void//, undefined, new Point(1600, 800) // { // this.tiledMap = new TiledMap(); // // Laya.loader.create(["res/til...
来源: Laya_社区 发布时间: 20201230
...g.centerX = 0; img.centerY = -70; img.skin = "res/monkey2.png"; Laya.stage.addChild(img); //文字 var text:Laya.Label = new Laya.Label(); text.text = "游戏的水平方向"; text.color = "gray"; text.fontSize = 100; text.centerX = 0; text.centerY = 50; Laya.stage.addChild(text); } Laya.init(0, 0, ...
来源: Laya2.0_文档 发布时间: 20210715
...) as Class; var mcOne:MovieClip=new Classs() as MovieClip; mcOne.speed=10; addChild(mcOne); var mcTwo:MovieClip=new Classs() as MovieClip; mcTwo.speed=100; mcTwo.x=100; addChild(mcTwo); trace(mcOne.speed,mcTwo.speed); cuixueying • 2016-04-08 21:53 方法不只一种,你可以根据你的需求...
来源: Laya_社区 发布时间: 20160407
...候,从A点移到B点。 我把这个拖尾在A点时remove,再B点时addChild。 它还是从原来的A位置拖过来B了,造成BUG现象。 重点:希望对拖尾API添加一个重置或清除的API,好让它从新的位置开始计算拖尾。 重点:重点:希望对拖尾API添...
来源: Laya_社区 发布时间: 20181217
...nput.wordWrap=true; textInput.width=200; textInput.x=100; textInput.y=200; addChild(textInput); textInput.addEventListener(FocusEvent.FOCUS_IN,onFocusIn); textInput.addEventListener(FocusEvent.FOCUS_OUT,onFocusOut); private function onFocusIn(event:FocusEvent):void { textInput.text="你的键盘打...
来源: Laya_社区 发布时间: 20151225
..."; this.logger.align = 'center'; this.logger.valign = 'middle'; Laya.stage.addChild(this.logger); } } } new laya.Interaction_Keyboard();package { import laya.display.Stage; import laya.display.Text; import laya.events.Event; import laya.utils.Browser; import laya.webgl.WebGL; public class Interactio...
来源: Laya_示例 发布时间: 20251219
...(20,"right"); let pixelleft = new PixelLineSprite3D(20,"left"); this.scene.addChild(rightControl); this.scene.addChild(leftControl); this.scene.addChild(pixelright); this.scene.addChild(pixelleft); webXRInput.bindMeshNode(leftControl,WebXRInput.HANDNESS_LEFT); webXRInput.bindMeshNode(rightControl,We...
来源: Laya3.0_文档 发布时间: 20251010
...room/othersay.png"; paopao.imgJudge.visible = true; } paopao.imgSayBg.addChild(div); gRoomView.chatBox.addChild(paopao); //更新高度 gRoomView.chatBox.height = gRoomView.chatBox.height + paopao.height; gRoomView.chatPanel.refresh(); gRoomView.chatPanel.vScrollBar.value = gRoomView.chatPanel....
来源: Laya_社区 发布时间: 20170911
... { sp = new Sprite(); Laya.stage.addChild(sp); //画三角形 sp.graphics.drawPoly(30, 28, [0, 100, 50, 0, 100, 100], "#ffff00"); } })(); ``` 代码运行效果如下图所示:  ...
来源: Laya2.0_文档 发布时间: 20210715