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

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

641. 报错:找不到基类,按照laya社区的解答做了,但是导致了另外一个类和接口出现一样的错 [ 63%]

...       txt.strokeColor = "#ffffff";             txt.pos(60, 100);             Laya.stage.bgColor = "#ffff00";             Laya.stage.addChild(txt);         }     } } 2017-10-25 0 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: LayaAir引擎...

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

642. viewport 的用法 [ 63%]

...,null,Sprite);         var dddd = new layaSlot();         dddd.x = 100         dddd.y=100         Laya.stage.addChild(dddd);     跑一下这句代码  我发现了 如果ccc.y不设置或者设置为0的话 就是无论怎样都没办法显示 y一定要设置为大于0的才会...

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

643. List翻页效果 [ 63%]

... { this.list_rule.scrollBar.stopScroll(); this.list_rule.tweenTo(index - 1,100); } else if (this.list_rule.scrollBar.value > this.m_downValue) { this.list_rule.scrollBar.stopScroll(); this.list_rule.tweenTo(index + 1,100); } } this.m_downValue = -1; } } } 2020-10-19 0 0 分享 微博 QZONE 微信...

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

644. laya.physics.RigidBody [ 63%]

... 对刚体施加力 Parameters position:Object — 施加力的点,如{x:100,y:100},全局坐标  force:Object — 施加的力,如{x:0.1,y:0.1} applyForceToCenter()method  public function applyForceToCenter(force:Object):void 从中心点对刚体施加力,防止对象旋转 Parameters fo...

来源: Laya2.0_api 发布时间: 20190513

645. 材质-BlinnPhong-反射贴图 [ 63%]

...ld(new Laya.Scene()); var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))); camera.transform.translate(new Laya.Vector3(0, 1.3, 1.8)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var directionLight = scene.addChild(new L...

来源: Laya_示例 发布时间: 20260303

646. 求助 Uncaught SyntaxError: Unexpected identifier [ 63%]

...是球体 var sphere = scene.addChild(new MeshSprite3D(new SphereMesh(0.05,100,100))) as MeshSprite3D; var material = new StandardMaterial(); material.albedo = new Vector4(0, 0, 0, 1); sphere.meshRender.material = material; sphere.transform.position = new Vector3(0, 0, 0); //模拟x轴,其实是...

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

647. List翻页效果怎么实现 [ 63%]

... { this.list_rule.scrollBar.stopScroll(); this.list_rule.tweenTo(index - 1,100); } else if (this.list_rule.scrollBar.value > this.m_downValue) { this.list_rule.scrollBar.stopScroll(); this.list_rule.tweenTo(index + 1,100); } } this.m_downValue = -1; } } } 2020-10-18 0 0 分享 微博 QZONE 微信...

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

648. LayaAir下加载阿拉伯TTF字体,手机上显示时左右顺序反了。 [ 63%]

...text.font="hu"; text.fontSize=50; text.text="لحسن نهر123"; text.pos(100, 100); text.width = 500; text.height = 500; Laya.stage.addChild(text); }   参考该贴加载字体方式: https://ask.layabox.com/question/332 附件 : --> LayaFontTest.zip 2018-07-05 添加评论 已悬赏10元 --> ...

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

649. laya.ui.Image_API3.0 [ 63%]

.../创建一个 Image 类的实例对象 bg ,并传入它的皮肤。 bg.x = 100;//设置 bg 对象的属性 x 的值,用于控制 bg 对象的显示位置。 bg.y = 100;//设置 bg 对象的属性 y 的值,用于控制 bg 对象的显示位置。 bg.sizeGrid = "40,10,5,10";//设置 bg 对象的...

来源: Laya3.0_api 发布时间: 20231115

650. 加载-销毁Texture使用的图片资源 [ 62%]

...s.aniFly.loadAtlas(this.PathFly); this.aniFly.play(); this.aniFly.pos(250, 100); Laya.stage.addChild(this.aniFly); //创建按钮 this.btn = new Sprite().size(205, 55); this.btn.graphics.drawRect(0, 0, this.btn.width, this.btn.height, "#057AFB"); this.txt = new Text(); this.txt.text = "销毁"; this...

来源: Laya_示例 发布时间: 20260303