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

大约有 3,974 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0077 秒)

861. runtime运行报错! [ 83%]

...ya.ui.js里代码如下:  View.getCompInstance=function(json){       var runtime=json.props ? json.props.runtime :"";       var compClass=runtime ? (View.viewClassMap[runtime] || Laya["__classmap"][runtime]):View.uiClassMap[json.type];      return compClass ? new compClass():null;  } ...

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

862. 像素线 · LayaAir3.0文档 · LAYABOX [ 83%]

..., color: Laya.Color): void { if (sprite3D.getComponent(Laya.MeshFilter)) { var mesh: Laya.Mesh = sprite3D.getComponent(Laya.MeshFilter).sharedMesh; var positions: Array<Laya.Vector3> = []; mesh.getPositions(positions); var indices = mesh.getSubMesh(0).getIndices(); for (var i: number = 0; i &l...

来源: Laya3.0_文档 发布时间: 20240624

863. 骨骼释放纹理 Templet.TEMPLET_DICTIONARY[this.url] url用错了导致Templet删不掉 [ 83%]

...estroy=function(){         this._isDestroyed=true;         var tTexture;         var $each_tTexture;         /*for each*/for($each_tTexture in this.subTextureDic){             tTexture=this.subTextureDic[$each_tTexture];             if(tTexture...

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

864. 屏幕适配-缩放-Show All [ 83%]

...ipt三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var rect; (function() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; createCantralRect(); })(); function createCantralRect(...

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

865. 屏幕适配-缩放-Extract Fit [ 83%]

...ipt三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var rect; (function() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_EXACTFIT; Laya.stage.bgColor = "#232628"; createCantralRect(); })(); function createCantralRect...

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

866. 怎么获取手机相册内容 [ 83%]

...c function Main() { //初始化引擎 Laya.init(500,500);//初始化引擎 var skins:Array = [ "res/button-1.png" ]; Laya.loader.load(skins, Handler.create(this, onUIAssetsLoaded)); } public function onUIAssetsLoaded():void { var btn:Button = new Button("res/button-1.png"); Laya.stage.addChild(btn);...

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

867. Sprite3D添加组件或脚本(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 83%]

...L; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; //预加载所有资源 var resource:Array = ["res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh"]; Laya.loader.create(resource, Laya.Handler.create(this, this.onComplete)); } onComplete(){ //记载场景 var scene = Laya.stage.addChild(new Laya.Sce...

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

868. 求问:西文字体下半部分被遮挡,怎么处理? [ 83%]

...on 赞同来自: class TextRender getFontSizeInfo 函数,最后部分    var xoff:int = Math.max( orix - pixelBBX[0], 0);    var yoff:int = Math.max( oriy - pixelBBX[1], 0);    var bbxw:int = pixelBBX[2] - pixelBBX[0];    var bbxh:int = pixelBBX[3] - pixelBBX[1]+1; 原来没有+1,如果不...

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

869. 为啥我克隆的对象,动画会相互影响 [ 83%]

...象,动画会相互影响 _shou是一个网格模型; ///自己的手 var myClone:MeshSprite3D = _shou.clone();                 var myAmn:SkinAnimations = myClone.addComponent(SkinAnimations) as SkinAnimations;                 myAmn.templet = AnimationTemplet.load( "3d/sh...

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

870. rigidBody.applyForce 物体不会移动 [ 83%]

...台上 this.scene = scene; Laya.stage.addChild(scene); //添加方向光 var directionlight: Laya.DirectionLight = scene.getChildByName( "Directional Light" ) as Laya.DirectionLight; this.directionlight = directionlight; //加入子層人物腳色到舞台 var littleGirl: Laya.Sprite3D = scene.getCh...

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