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

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

231. 高级应用-Laya3D与网页混合 [ 69%]

...material.StandardMaterial; import laya.d3.core.scene.Scene; import laya.d3.math.Quaternion; import laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.Texture2D; import laya.d3.resource.TextureCube; import laya.d3.resource.models.BaseMesh; import laya.d3.resource.models.Mesh; ...

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

232. 【简单跑酷--JS版】---Lv.3 添加地板 [ 69%]

...整个素材是 32 * 20 拼起来的 this.y = 32 * 6 + 32 * parseInt(8 * Math.random()); if(this.bg == null){ //贴图纹理 this.bgTexture = Laya.loader.getRes("res/floor.png"); this.bg = new laya.display.Sprite(); this.bg.graphics.clear(); //将当前的坐标向上移动32 方便后面处理人...

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

233. Label Text控件 无法显示全子图 [ 69%]

... 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_社区 发布时间: 20190809

234. 我用的HBox做的进度条为啥总是一闪一闪的。 [ 68%]

...显示啊 public onChange(value: number): void { console.log("进度:" + Math.floor(value * 100) + "%"); var num:number = Math.floor(value*100); // this.updateFont(num); this.updateFont(100); //test用 // if(num==100){ // G.I.loginManager.preload(); // } } private hbox:Laya.HBox; private updateFon...

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

235. ios旋转问题 [ 68%]

... if (width != 640) { var ratio:Number = width / 640; width = 640; height = Math.floor(height / ratio); } if (height > 1280) height = 1280; else if (height < 960) height = 960;*/ var browerRatio:Number = width / height ; if( height != 1136 ) { // w 640 // h 1136 var ratioW:Number = height / 113...

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

236. 照相机-多照相机 [ 68%]

...core.light.DirectionLight; import laya.d3.core.scene.Scene; import laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.math.Viewport; import laya.d3.resource.TextureCube; import laya.d3.resource.models.Mesh; import laya.d3.resource.models.SkyBox; import laya.display.Stage; import laya....

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

237. [LayaAirIDE3]xcode切入切出声音不播放 [ 68%]

... public setBGMVolume(value: number): void {         const bgmVolume = Math.min(100, Math.max(0, value)) / 100;         Laya.SoundManager.setMusicVolume(bgmVolume);         /* if (this.bgmChannel) {             this.bgmChannel.volume = Laya.SoundManager.musicVolume;         } */...

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

238. laya.d3.math.Vector3 [ 68%]

...| Index | Frames No Frames Vector3Properties | Methods Packagelaya.d3.mathClasspublic class Vector3InheritanceVector3 ObjectImplements laya.d3.core.IClone Vector3 类用于创建三维向量。 Public Properties PropertyDefined By  x : NumberX轴坐标Vector3  y : NumberY轴坐标Vector3 ...

来源: Laya2.0_api 发布时间: 20190513

239. Sprite3D-Sprite3D克隆 [ 68%]

...material.StandardMaterial; import laya.d3.core.scene.Scene; import laya.d3.math.Quaternion; import laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.Texture2D; import laya.d3.resource.TextureCube; import laya.d3.resource.models.BaseMesh; import laya.d3.resource.models.Mesh; ...

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

240. 材质-BlinnPhong材质加载 [ 68%]

...hics.IndexBuffer3D; import laya.d3.graphics.VertexBuffer3D; import laya.d3.math.Quaternion; import laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.models.Mesh; import laya.display.Stage; import laya.events.Event; import laya.ui.Button; import laya.utils.Browser; import lay...

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