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

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

661. laya.media.VideoNode_API3.0 [ 72%]

... https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video Hierarchy Sprite VideoNode Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alp...

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

662. Image在设置skin的时候可以判断加载不到当前skin就使用默认图片作为skin吗? [ 72%]

...监听下complete跟error,在事件里处理。 方法二:或者你用sprite的loadImage,回调里如果成功了会返回文理信息,如果没有返回你就用默认图片。 方案三:先用loader去加载图片,然后用loader.getRes获取资源,如果获取的资源是空的你...

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

663. 3D模型无法正显示和播放动作 [ 72%]

...问题,还是使用问题           var hero = sphere.addChild(Laya.Sprite3D.load("./res/Xinzhaoyun/Zhaoyun_skin.lh"));          var ani = hero.addComponent(Laya.SkinAnimations);         ani.templet = Laya.AnimationTemplet.load("./res/Xinzhaoyun/Zhaoyun_standfight.lsani");       ...

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

664. 3D中如何限制角色的行走区域? [ 72%]

...ture2D, priority:1, params:[true]}        场景中初始化MeshTerrainSprite3D:               //通过场景中子父级节点寻找可行走区域网格模型               var meshSprite3D:MeshSprite3D = sceneSprite3d.getChildAt(0).getChildAt(0).getChildAt(13) as MeshSprite3D;...

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

665. 关于大量绘制 draw的性能优化问题 [ 72%]

...er; var Stat    = laya.utils.Stat; var Event   = laya.events.Event; var Sprite =  laya.display.Sprite; Laya.init(800, 1030); Stat.show(0,0); var drawLayer = new Sprite(); Laya.stage.addChild(drawLayer); drawLayer.width = 800; drawLayer.height = 1030; drawLayer.on(Event.MOUSE_MOVE, this, mousemov...

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

666. laya.ui.UIComponent_API3.0 [ 72%]

...lize > createChildren > initialize > 组件构造函数 Hierarchy Sprite UIComponent Box ISelect Button Clip ColorPicker Label Image Slider ScrollBar ComboBox ProgressBar TipManager OpenDataContextView Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url au...

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

667. [LayaNative3]3.2.0-beta2的windows模拟器启动黑屏 [ 72%]

...测是起始点和结束点没有完全对齐烘培的navmesh。 7、2D的Sprite没有相对布局组件,导致Sprite无法对齐父节点。 8、【Laya.stage.frameRate】没有提供高刷接口,无法设置高刷新率(120帧),只能在引擎初始化前使用Laya.Config.FPS=120实现...

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

668. 资源导出后LAYA跟unity,transform效果不一致 [ 72%]

...on   2018-08-02 0 5 分享 微博 QZONE 微信  赞同来自: 不经过Sprite3D.instantiate,直接addchild,this.scene2.addChild(Laya.loader.getRes("res/test.lh")),就没问题 @Laya_Aaron 2018-08-02 0 4 分享 微博 QZONE 微信 家民 赞同来自: 这个问题一直都还存在吗??? ...

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

669. 图片加载问题 [ 72%]

图片加载问题 var s:Sprite = new Sprite; s.loadImage("res/soil.png"); Laya.stage.addChild(s); chrome报错:Access to Image at 'file:///E:/study/LayaAirStudy/bin/h5/res/soil.png' from origin 'null' has been blocked by CORS policy: Invalid response. Origin 'null' is therefore not allowed acces...

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

670. unity导出的3D动画模型,导入 laya环境报错: node._setParent is not a function [ 72%]

...入 laya环境报错: node._setParent is not a function var role3D: Laya.Sprite3D = Laya.loader.getRes("res/lk4.lh") as Laya.Sprite3D; //加载到场景 scene.addChild(role3D);  //此处报错 var ani = role3D.getComponent(Laya.Animator) as Laya.Animator; //播放攻击状态 ani.play(); chrome ...

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