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

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

2791. LayaFlash针对资源的加载是同步还是异步? [ 65%]

...lash.display.Loader; import flash.display.LoaderInfo; import flash.display.Sprite; import fash.display.StageAlign; import flash.display.StageScaleMode; import flash.events.Event; import flash.net.URLRequest; public class Main extends Sprite { public function Main():void { if (stage) init(); else add...

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

2792. Timer.clear 方法有问题 [ 65%]

...。。。 石圣 • 2018-12-03 11:24 想了一下,暂时可以用一个Sprite的来添加Tween以实现这种timer的效果,需要移除的时候,就用Laya.Tween.Clearall(sprite);

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

2793. [LayaAir3]给box设置filters,里面的spine无效或者无法显示 [ 65%]

...本2.6) spine在微信小游戏中切换动画无法显示 如何设置Sprite的宽高和点击区域? list 每次滑动,都是可以滑动一点点,可不可以如何设置,让他每次滑动,只能固定的值。 3D模型无法修改scale? 发布到vivo平台后,龙骨动画无法显...

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

2794. 请问Laya如何使用第三方物理库 [ 65%]

... CannonRigidbody extends Laya.Script3D { static map: { [key: number]: Laya.Sprite3D } = {}; body: CANNON.Body; t: Laya.Transform3D; public onCollisionCB: (s: Laya.Sprite3D) => void; public ignoreRotate: boolean = false; ...OnAwake里面创建CANNON.Body, OnEnable里面把CANNON.Body加入到CANNO...

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

2795. 资源加载(JavaScript-3D基础(JS)-LayaAir3D之资源加载) [ 65%]

...l, function(tex) { //使用纹理 var earth1 = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere(5, 32, 32))); earth1.transform.translate(new Laya.Vector3(10, 20, -8)); var earthMat = new Laya.BlinnPhongMaterial(); earthMat.albedoTexture = tex; earthMat.albedoIntensity = 1; earth1...

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

2796. 为什么在默认的画布canvas渲染模式下,对节点设置滤镜会很卡,而且骨骼动画会错位 [ 65%]

...得场景内的元素 骨骼动画播放完后的回调时间 如何设置Sprite的宽高和点击区域? 两个问题 有元件支援视频流渲染吗? Image元件读不了资料流 Laya3D里的material可以设置flat shading么 我用list.array=Array;数据全部插进去数组里了,但...

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

2797. 使用以下代码打开超大分辨率图片 WebGL 模式无法正常显示 [ 65%]

...{ Laya.init(900,1440,Laya.WebGL); //WebGL Laya.Stat.show(0,0); let sp:Laya.Sprite = new Laya.Sprite; //sp.loadImage("comp/big.png"); //读取分辨率小的图片 正常 sp.loadImage("comp/hug.png"); //读取大分辨率图片 无法显示 Laya.stage.addChild(sp); } } new GameMain();//问题描述 ...

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

2798. 给每个精灵绑定点击事件,但点击精灵的时候时而触发时而不触发点击事件 [ 65%]

...求大大们解答 ui list 里面的元素不能点击两次 如何设置Sprite的宽高和点击区域? Animation如何加点击事件 求指点3d射线碰撞和UI点击穿透的问题 关于遍历产生的sprite的点击事件,急,大神帮看哈 微信小游戏与加载图片时不会触发...

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

2799. 使用发光滤镜后的第一个遮罩效果无效 [ 65%]

...yObject.filters = [glowFilter];         var ui_hpBarMask = new Laya.Sprite();         ui_hpBarMask.graphics.clear();         ui_hpBarMask.graphics.drawRect(0, 0, 154, 12, 0xffffff);         this.txt_pro.displayObject.mask = ui_hpBarMask; 附件 : --> 2022-05-31 添加评...

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

2800. laya.events.MouseManager_API3.0 [ 65%]

...事件处理。 Parameters evt: any Returns void setCapture setCapture(sp: Sprite, exclusive?: boolean): void Defined in laya/events/MouseManager.ts:461 Parameters sp: Sprite Default value exclusive: boolean = false Returns void Globals "laya/events/MouseManager" MouseManager disableMouseEvent mouse...

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