• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 2,310 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0062 秒)

901. 绘制三角形、多边形及根据数据绘制图案(ActionScript-LayaAir基础篇(AS3)-矢量图) [ 63%]

...         sp = new Sprite();             Laya.stage.addChild(sp);             //画三角形             sp.graphics.drawPoly(30, 28, [0, 100, 50, 0, 100, 100], "#ffff00");                        }     } } ``` 代码运...

来源: Laya2.0_文档 发布时间: 20210714

902. FlashDevelop中第一个程序“Hello Layabox”(ActionScript-LayaAir基础篇(AS3)-快速上手) [ 63%]

...fffff';         //将文本内容添加到舞台     Laya.stage.addChild(txt);   }  } } ``` ​ **步骤三**:完成代码编写后,使用之前定义的编译快捷键(Alt+F5),把AS3代码编译成HTML5。 ​ ![图片](img/10.png) ​ 图(10) ​ 编译完成后,编...

来源: Laya2.0_文档 发布时间: 20210715

903. ComboBox属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 63%]

...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

904. LayaNative 是不是不支持3D啊 [ 63%]

... 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

905. 物理系统之FixedConstraint(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 63%]

...`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

906. 物理系统之FixedConstraint(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 63%]

...`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

907. unity导出的场景.ls加载到laya3d中报错 [ 63%]

...景 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

908. 动画实例在调用含有名字参数的时候获取不到边界 [ 63%]

...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

909. 帮忙看看Texture类getPixels内存泄漏的问题。 [ 62%]

...>> 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

910. 文本-滚动文本 [ 62%]

...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