大约有 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)
... sp = new Sprite(); Laya.stage.addChild(sp); //画三角形 sp.graphics.drawPoly(30, 28, [0, 100, 50, 0, 100, 100], "#ffff00"); } } } ``` 代码运...
来源: Laya2.0_文档 发布时间: 20210714
...fffff'; //将文本内容添加到舞台 Laya.stage.addChild(txt); } } } ``` **步骤三**:完成代码编写后,使用之前定义的编译快捷键(Alt+F5),把AS3代码编译成HTML5。  图(10) 编译完成后,编...
来源: Laya2.0_文档 发布时间: 20210715
...er = new Handler(this, onSelect, [comboBox]); //加载到舞台 Laya.stage.addChild(comboBox); //自动计算宽高 comboBox.autoSize = true; //设置位置 comboBox.pos((Laya.stage.width - comboBox.width) / 2, 150); //自动计算宽高关闭(在设置位置时,需获取列表宽度,获取后...
来源: Laya2.0_文档 发布时间: 20210714
... 01-29 14:08:22.509 12064-12079/? E/LayaBox: JCSceneCmdDispath::_rendercmd_addChild error can't find the node3d id=-1 01-29 14:08:22.509 12064-12079/? E/LayaBox: JCSceneCmdDispath::_rendercmd_addChild error can't find the node3d id=-1 01-29 14:08:22.599 12064-12104/? I/LayaBox: alert=http://stand.al...
来源: Laya_社区 发布时间: 20180129
...`typescript //创建盒型MeshSprite3D var box: MeshSprite3D = (this.scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1)))); //设置材质 var transform: Transform3D = box.transform; var pos: Vector3 = transform.position; pos.setValue(0, 5, 0); transform.position = pos; //创建刚体...
来源: Laya2.0_文档 发布时间: 20210715
...`typescript //创建盒型MeshSprite3D var box: MeshSprite3D = (this.scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1)))); //设置材质 var transform: Transform3D = box.transform; var pos: Vector3 = transform.position; pos.setValue(0, 5, 0); transform.position = pos; //创建刚体...
来源: Laya2.0_文档 发布时间: 20210715
...景 var scene = Laya.Scene.load("LayaScene_unity1/unity1.ls"); Laya.stage.addChild(scene); //创建摄像机(横纵比,近距裁剪,远距裁剪) var camera= new Laya.Camera( 0, 0.1, 1000); //加载到场景 scene.addChild(camera); //移动摄像机位置 camera.transform.position=new Laya.Vecto...
来源: Laya_社区 发布时间: 20171017
...i].scaleY = 300/bounds.height; this.playerUnit[i].pos(200,400); Laya.stage.addChild(this.playerUnit[i]); } this.playerUnitReady+=1; } enemyUnitLoaded(){ for(let i in this.enemyUnit){ Laya.Animation.createFrames(this.aniUrls("stand",4),"enemy"+i+"stand") this.enemyUnit[i...
来源: Laya_社区 发布时间: 20200910
...>> 1); _colorSpr.size(_colorTex.width, _colorTex.height); Laya.stage.addChild(_colorSpr); _initPixelCount = getPixel(_colorTex); addEvent(); } private function addEvent():void { _colorSpr.on(Event.MOUSE_MOVE, this, __moveHandler); } private function __moveHandler():void { var p:Point = toLocal...
来源: Laya_社区 发布时间: 20180302
...st Text = Laya.Text, Event = Laya.Event; this.txt = new Text(); Laya.stage.addChild(this.txt); this.txt.overflow = Text.SCROLL; this.txt.text = "Layabox是HTML5引擎技术提供商与优秀的游戏发行商,面向AS/JS/TS开发者提供HTML5开发技术方案!\n" + "Layabox是HTML5引擎技术...
来源: Laya2.0_示例 发布时间: 20251219