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

大约有 1,491 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0060 秒)

541. mac下用FB打包发布测试页面,chrome浏览器看不到预期显示文字 [ 75%]

...le is not defined. /LayaAirTest/src/LayaAirTest.as (22):warning:Laya.stage.addChild This variable is not defined.   代码如下: package {     import laya.display.Text;     public class LayaAirTest     {         public function LayaAirTest()         {             Laya....

来源: Laya_社区 发布时间: 20170429

542. PointLight介绍(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 75%]

...径属性。 ```javascript //创建点光源 this.pointLight = this.scene.addChild(new Laya.PointLight()); //设置点光源颜色 this.pointLight.color = new Laya.Vector3(1.0, 0.5, 0.0); //设置点光源位置 this.pointLight.transform.position = new Laya.Vector3(0.4, 0.4, 0.0); //设置点光源...

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

543. 关于Tween类多个对象同时缓动的时候过一段时间会不同步 [ 75%]

...法然后同步执行 private function loadComplete2():void { Laya.stage.addChild(view); for(var i:int=1;i<=7;i++) { var tempItem:ItemUi=new ItemUi() Laya.stage.addChild(tempItem); tempItem.x=i*100; tempItem.y=200; tempItem.setAnimated(true); arr.push(tempItem); // this.playAni(tempItem,new Point...

来源: Laya_社区 发布时间: 20180524

544. 使用3D精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 75%]

...nsform.position = new Laya.Vector3(1,0,0); //添加到场景中 this.scene.addChild(sp); 其次,这里详细讲解下Sprite3D中特有的克隆接口instantiate /** * 创建精灵的克隆实例。 * @param original 原始精灵。 * @param parent 父节点。 * @param worldPositionStays 是否保...

来源: Laya3.0_文档 发布时间: 20251010

545. LayaAir和原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 75%]

...var sp = new Laya.Sprite(); sp.loadImage(data, 0, 0, 200, 200); Laya.stage.addChild(sp); ``` 通过data来当做url传递给loadImage这个方法引擎就会帮我们加载并解码显示出来。loadImage这个方法中的参数不仅仅有接收地址的url还接收base64和svg的格式。编译...

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

546. LayaAir开发笔记(1)五十音图连连看 [ 75%]

...oadImage("linkgame_back.jpg"); background.cacheAsBitmap = true; Laya.stage.addChild(background); // 设定标题 var title = new laya.display.Text(); title.text = g_game_title; title.font = "Arial"; title.fontSize = 50; title.stroke = 2; title.strokeColor = "Black"; title.pos(g_stat_width / 2 - titl...

来源: Laya_社区 发布时间: 20160623

547. 文本-多行输入 [ 75%]

...nput() { const Input = Laya.Input; let inputText = new Input(); Laya.stage.addChild(inputText); //多行输入 inputText.multiline = true; inputText.wordWrap = true; inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya.stage.height - inputText.height >>...

来源: Laya2.0_示例 发布时间: 20251209

548. Laya.timer.frameLoop(1, this, this.aaa);对象移动会出现颤抖现象 [ 75%]

...; this.playerHB.txtName.text = "搞个毛啊"; // this.playerVO.name; this.addChild(this.playerHB); } private aaa():void { this.playerHB.x += this.bb; console.log( this.playerHB.x); if(this.playerHB.x > 1000) { this.bb *= -1; } if(this.playerHB.x < -100) { this.bb *= -1; } } 控制一直6像...

来源: Laya_社区 发布时间: 20180102

549. 物体碰撞问题 [ 75%]

物体碰撞问题 var box_1 : Laya.MeshSprite3D = this.scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))) as Laya.MeshSprite3D; box_1.transform.translate(new Laya.Vector3(0, 5, 0)); var boxRigidBody_1 : Laya.Rigidbody3D = box_1.addComponent(Laya.Rigidbody3D); var boxShape...

来源: Laya_社区 发布时间: 20190602

550. viewportPointToRay产生的射线始终有偏差,是为什么? [ 75%]

...1754, 0.7341046333312988); let scene: Laya.Scene = new Laya.Scene(); scene.addChild(camera); scene.addScript(SceneScript); Laya.stage.addChild(scene); } } new GameMain(); g02test.zip 2018-02-01 0 0 分享 微博 QZONE 微信 qian 赞同来自: 自己new的摄像机和射线检测误差没有关系 ...

来源: Laya_社区 发布时间: 20180201