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

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

301. macOS系统运行layaair-cmd resourceVersion报错 [ 66%]

macOS系统运行layaair-cmd resourceVersion报错 环境:macOS 10.13.4 版本:​layaair-cmd resourceVersion 2.2.5   运行layaair-cmd resourceVersion -i ./src/res -o ./src -n 1000 报错,错误如下:   internal/child_process.js:323     throw errnoException(err, 'spawn');     ^   ...

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

302. drawToTexture 绘制函数不工作呢 [ 66%]

...aya.loader.getRes("res/atlas/test.png");         //let texcpy:laya.resource.Texture = Laya.loader.getRes("res/atlas/test.png")         let texcpy:laya.resource.Texture = img.drawToTexture(100,100,0,0);         let copyimg:Laya.Sprite = new Laya.Sprite();         copyi...

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

303. 调试正常但发布后,index.html在浏览器打开出现跨源受限的问题 [ 66%]

... Image from origin 'file://' has been blocked from loading by Cross-Origin Resource Sharing policy: Invalid response. Origin 'null' is therefore not allowed access. laya.core.min.js:6 [warn]Retry to load: E:/laya/layatest/release/layaweb/1.0.0/res/img/image.png index.html:1 Image from origin 'file:/...

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

304. Spine骨骼动画 · LayaAir3文档 · LAYABOX [ 66%]

...执行一次 onAwake(): void { //加载Spine动画资源 Laya.loader.load("resources/boy/spineboy-pma.skel").then(() => { //添加spine组件 this.spine = this.sprite.addComponent(Laya.Spine2DRenderNode); this.spine.source = "resources/boy/spineboy-pma.skel"; this.spine.animationName = "walk"; })...

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

305. 高级应用-寻路导航 [ 66%]

...NE; Laya.Stat.show(); this.path = new Array(); //预加载所有资源 var resource = [ { url: "../../res/threeDimen/scene/TerrainScene/XunLongShi.ls", clas: Laya.Scene, priority: 1 }, { url: "../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", clas: Laya.Sprite3D, priority: 1 }, { url: "../.....

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

306. 3D基础显示对象 · LayaAir3.3 · 引擎文档 · LAYABOX [ 66%]

...PhongMaterial = new Laya.BlinnPhongMaterial(); //预加载纹理资源 let resource: string = "resources/layabox.png"; Laya.loader.load(resource).then(() => { //为材质加载纹理 let tex = Laya.Loader.getTexture2D(resource); //设置贴图 boxMaterial.albedoTexture = tex; }); boxRender.shared...

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

307. 问一下这个问题要怎么改啊? [ 66%]

...改啊? appPic.as   package { import laya.display.Sprite; import laya.resource.Texture; import laya.ui.Image; import laya.utils.Handler; public class addPic { private var picUrl:String; private var pic:Sprite; private var picX:int; private var picY:int; public function addPic(str:String, x:int, y...

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

308. 3D场景-场景加载 [ 66%]

...port laya.d3.core.scene.Scene; import laya.d3.math.Vector3; import laya.d3.resource.TextureCube; import laya.d3.resource.models.SkyBox; import laya.display.Stage; import laya.utils.Stat; import common.CameraMoveScript; public class SceneLoad { public function SceneLoad() { Laya3D.init(0, 0, true); L...

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

309. 位图切片组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 66%]

...下资源来自“引擎API使用示例” private buttonSkin: string = "resources/res/ui/button-7.png"; private clipSkin: string = "resources/res/ui/num0-9.png"; private bgSkin: string = "resources/res/ui/coutDown.png"; counter: any; controller: any; currFrame: any; //组件被激活后执行,此...

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

310. 天空-天空穹 [ 65%]

...port laya.d3.core.scene.Scene; import laya.d3.math.Vector3; import laya.d3.resource.Texture2D; import laya.d3.resource.models.SkyDome; import laya.display.Stage; import laya.utils.Handler; import laya.utils.Stat; import common.CameraMoveScript; /** * ... * @author */ public class SkyDomeSample { pub...

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