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

大约有 2,642 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0081 秒)

681. 请问 .lh资源导出时会在角色外包裹一层sprite3D 是什么意思? [ 73%]

请问 .lh资源导出时会在角色外包裹一层sprite3D 是什么意思? 2017-12-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: laya不能直接用模型文件,我们选用的...

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

682. 分享一个Shader版的CoolDown实现 [ 73%]

... Laya.Texture = Laya.Loader.getRes("progress.png"); this.spe = new coolDownSprite(); this.spe.init(texture); //this.spe.initWithoutTexture(128, 128); this.spe.pos(300, 350); this.spe.setProgress(this.progress); Laya.stage.addChild(this.spe); ----------------------源码-------------------------- imp...

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

683. TimeLine.addLabel(label:String, offset:Number):TimeLine 亲测! 方法中第二个参数offset无效 [ 73%]

...序入口 class GameMain{ constructor() { Laya.init(600,400); var sp:Laya.Sprite = new Laya.Sprite(); sp.graphics.drawRect(0,0,50,50,"#ff8822"); Laya.stage.addChild(sp); var delay:number = 5000; var timeLine:Laya.TimeLine = new Laya.TimeLine(); timeLine.addLabel("0",delay).to(sp,{x:550},500,null,0);...

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

684. layasprite或其他物体能否叠加在一个dom上(比如image或video) [ 73%]

layasprite或其他物体能否叠加在一个dom上(比如image或video) 2017-08-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: LayaAir是基于canvas的操作,layaAir下的s...

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

685. VR场景-VR场景 [ 73%]

...t laya.d3.core.BaseCamera; import laya.d3.core.Camera; import laya.d3.core.Sprite3D; import laya.d3.core.VRCamera; import laya.d3.core.light.DirectionLight; import laya.d3.core.scene.Scene; import laya.d3.math.Vector3; import laya.d3.resource.TextureCube; import laya.d3.resource.models.SkyBox; impor...

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

686. 请大家帮助优化一下这个抛物线的代码 [ 73%]

... https://my.oschina.net/u/659068/blog/1564002  class Ball extends Laya.Sprite{ private static cached:boolean = false; private body:Laya.Sprite; constructor(){ super(); this.init(); } public init():void{ if(!Ball.cached){ Ball.cached = true; this.body = new Laya.Sprite(); this.body.loadImage("war/b...

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

687. 分享:List相关(Item增删功能) [ 73%]

...onRemoveClick回调   大致代码如下:package { import laya.display.Sprite; import laya.events.Event; import laya.net.Loader; import laya.ui.Box; import laya.ui.CheckBox; import laya.ui.Clip; import laya.utils.Handler; import ui.test.ListPageUI; public class LayaUISample { private var listP:Li...

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

688. laya3d的scene里边怎么能添加2d的显示对象? [ 73%]

...示对象,我看3d的addChild源码 if (!((node instanceof laya.d3.core.Sprite3D ))) throw new Error("Sprite3D:Node type must Sprite3D."); 是不支持的,请问有其他方式么? 麟。 • 2018-09-12 18:44 我的目的是想2d的ui可以有3d的坐标系Transform3D FullyI • 2019...

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

689. laya.filters.NativeFilter_API3.0 [ 73%]

... 实例。 Returns NativeFilter Methods Static _filter _filter(this: RenderSprite, sprite: Sprite, context: any, x: number, y: number): void Defined in laya/filters/NativeFilter.ts:36 Parameters this: RenderSprite sprite: Sprite context: any x: number y: number Returns void Globals "laya/filters/Nat...

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

690. TimeLine运行的小问题 [ 73%]

.../初始化引擎 Laya.init(600, 400); Laya.stage.bgColor="#eeffcc"; var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,200,200,"#FF0000"); Laya.stage.addChild(sp); var timeLine:TimeLine=new TimeLine(); timeLine.on(Event.LABEL,this,onLabel); timeLine.addLabel("A",0).to(sp,{rotation:360},700) .addLa...

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