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

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

211. 输入设备-指南针 [ 84%]

...assImg); compassImg.loadImage(compassImgPath); compassImg.pivot(compassImg.width / 2, compassImg.height / 2); compassImg.pos(Laya.stage.width / 2, 400); } createDirectionIndicator() { const Sprite = Laya.Sprite; directionIndicator = new Sprite(); Laya.stage.addChild(directionIndicator); directionInd...

来源: Laya2.0_示例 发布时间: 20251130

212. 区块地图-滚动地图 [ 84%]

...t = Laya.Stat; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createMap(); Laya.stage.on(Event....

来源: Laya2.0_示例 发布时间: 20251130

213. Error: 代码包大小为 5533 kb,上限为 4096 kb,请删除文件后重试? [ 84%]

...就没有功能。 class Main { constructor() { console.log(Laya.Browser.width, Laya.Browser.height); this.current = { x: 0, y: Laya.Browser.height }; // Laya.stage.bgColor = "#3F51B5"; this.sp = new Laya.Sprite(); Laya.stage.addChild(this.sp); } render() { console.log("render"); var l = [ 0, 0, 0, ...

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

214. SVG渐变精灵的扩展脚本继承了多个精灵, 在safari环境下重叠了渲染 [ 84%]

...9/xlink" version="1.1" ';             data += 'viewBox="0 0 ' + this.width + ' ' + this.height + '" ';             // set svg width and height             data += 'width="' + this.width + '" height="' + this.height + '">';             data += '<defs>';          ...

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

215. transform的旋转和移动是异步方法吗? [ 84%]

...m.pivot.y - height/2,                 cube.transform.pivot.z - width/2); // 旋转             cube.transform.rotate(new Vector3(Math.PI/2*3,0,0));             var temp:Number = width;             width = height;             height = temp; // 将锚点...

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

216. 弹窗视图组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 84%]

...场景类继承而来。 拖动区域 dragArea 拖动区域(格式:x,y,width,height),默认值为"0,0,0,0" 模式窗口 isModal 是否是模式窗口,默认为false。为模式窗口时,点击弹窗空白处,可自动关闭该弹窗 显示弹窗效果 isShowEffect 是否显示弹出效...

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

217. laya.gltf.glTFAnimationChannelTargetPath_API3.0 [ 84%]

...0; right: 0; z-index: 1000; margin: 0; height: 68px; border-radius: 0; min-width: 310px; background-color: #1A1A1A; background-image: none; border: none; } #laya_content { width: 100%; height: auto; margin: 0px auto 0 auto; } @media (max-width: 767px) { #laya_content { overflow: auto; margin: 0px au...

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

218. laya.gltf.glTFMaterialOcclusionTextureInfo_API3.0 [ 84%]

...0; right: 0; z-index: 1000; margin: 0; height: 68px; border-radius: 0; min-width: 310px; background-color: #1A1A1A; background-image: none; border: none; } #laya_content { width: 100%; height: auto; margin: 0px auto 0 auto; } @media (max-width: 767px) { #laya_content { overflow: auto; margin: 0px au...

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

219. laya.gltf.glTFMaterialPbrMetallicRoughness_API3.0 [ 84%]

...0; right: 0; z-index: 1000; margin: 0; height: 68px; border-radius: 0; min-width: 310px; background-color: #1A1A1A; background-image: none; border: none; } #laya_content { width: 100%; height: auto; margin: 0px auto 0 auto; } @media (max-width: 767px) { #laya_content { overflow: auto; margin: 0px au...

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

220. laya.gltf.glTFAnimationSamplerInterpolation_API3.0 [ 84%]

...0; right: 0; z-index: 1000; margin: 0; height: 68px; border-radius: 0; min-width: 310px; background-color: #1A1A1A; background-image: none; border: none; } #laya_content { width: 100%; height: auto; margin: 0px auto 0 auto; } @media (max-width: 767px) { #laya_content { overflow: auto; margin: 0px au...

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