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

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

561. Laya.Sprite loadImage 参数问题 [ 65%]

Laya.Sprite loadImage 参数问题 第一天学习laya,遇见个问题。api上对loadimage的描述是:   loadImage(url:String, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Handler = null) 官方文档也是这么用的:http://ldc.layabox.com/doc/?nav=zh-ts-1-3-...

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

562. 3D中摄像机绕物体旋转该如何实现? [ 64%]

...sform: Transform3D; onStart(): void { this.transform = (this.owner as Laya.Sprite3D).transform; this.CurrentAngles = new Vector3(-this.transform.rotationEuler.x, this.transform.rotationEuler.y, 0); this.targetAngles = new Vector3(-this.transform.rotationEuler.x, this.transform.rotationEuler.y, 0); t...

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

563. Maximum call stack size exceeded [ 64%]

...er (laya.core.js:1027)     at new Node (laya.core.js:13292)     at new Sprite (laya.core.js:13871)     at new Scene (laya.core.js:23721)     at new GameMain (bundle.js:6)     at Function.getCompInstance (laya.core.js:21214)     at Function.createComp (laya.core.js:21081)     at Functio...

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

564. [LayaAir3]OPPO小游戏下图片地址无法加载 [ 64%]

...B, Laya.Loader.IMAGE ) .then((res: Laya.Texture) => { let sp = new Laya.Sprite(); sp.texture = res; sp.pos(0, 200); this.addChild(sp); });无法正常显示 检查发现 qg.downloadFile  报 error {         "errCode": -3,         "statusCode": 404,         "errMsg": "com.nearme.insta...

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

565. sprite.mask的疑问 [ 64%]

sprite.mask的疑问 黄色树A   和   黑色树B 设置A.mask = B;后只显示B 附件 : --> MaskTest.rar 2020-08-13 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 熊猫大侠 赞同来自: 用代码...

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

566. 关于新手引导 [ 64%]

...速器不支持   destination-out    package view { import laya.display.Sprite; import laya.events.Event; import laya.resource.Context; import laya.utils.Browser; import laya.utils.HitArea; public class KouTu extends Sprite { private var box:Sprite; private var interactionArea:Sprite; private var...

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

567. 图片不能按轴心旋转 [ 64%]

...aleMode = 'fixedauto' Laya.stage.screenMode = 'vertical' let bg = new Laya.Sprite(); bg.loadImage("../res/image/interface/intro_bg.png",375,667,1500,1500); bg.pivot(750,750) bg.alpha = 1 bg.rotation = 10图片是正方形的 如上设置过pivot之后 并没有按 正方形中心点旋转 2018-05-19...

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

568. 回调函数传递sprite3D问题 [ 64%]

回调函数传递sprite3D问题 使用 Laya.timer.frameLoop();函数 看了官方API,第四个参数是传一个数组,作为回调函数的入参, var spriteArray = new Array(); spriteArray.push(warehouse1); Laya.timer.frameLoop(1, this, freshBubble,spriteArray); function freshBubble(sprite...

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

569. [LayaAirIDE3]2d相机打包后问题 [ 64%]

...ass() export class Main extends Laya.Script {     @property({ type: Laya.Sprite })     public player: Laya.Sprite;      @property({ type: Laya.Sprite })     public joystick: Laya.Sprite;      @property({ type: Laya.Sprite })     public map: Laya.Sprite;      @property({ type: Laya.S...

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

570. 官方案例里摄像机绕物体旋转脚本的问题 [ 64%]

...sform: Transform3D; onStart(): void { this.transform = (this.owner as Laya.Sprite3D).transform; this.CurrentAngles = new Vector3(-this.transform.rotationEuler.x, this.transform.rotationEuler.y, 0); this.targetAngles = new Vector3(-this.transform.rotationEuler.x, this.transform.rotationEuler.y, 0); t...

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