大约有 400 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0065 秒)
...下断点调试进入查看。 var actor = Laya.Loader.getRes("res/LayaScene_Actor/Conventional/XiaoHongMao.lh") as Laya.Sprite3D; var weapon = Laya.Loader.getRes("res/LayaScene_Item/Conventional/Wchangzhang01.lh") as Laya.Sprite3D; var animCtl = actor.getComponent(Laya.Animator); scene.addChil...
来源: Laya_社区 发布时间: 20191011
...显示? List 组件列表渲染异常 localToGlobal坐标转换 laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 如何设置Sprite的宽高和点击区域? layaair3.1.3版本打出的项目中的text与label组件在vivo小游戏引擎1105...
来源: Laya_社区 发布时间: 20250528
...script /* ……省略若干代码 */ //创建盒型MeshSprite3D let box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(sX, sY, sZ))) as Laya.MeshSprite3D; //创建静态碰撞器 let staticCollider:Laya.PhysicsCollider = box.addComponent(Laya.PhysicsCollider); //设置为触发...
来源: Laya2.0_文档 发布时间: 20210715
... 找不到类的定义!这是为什么? 已上传 Demo 附件 laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 图集打包找不到图集文件 如何通过命令行工具构建和发布项目 配置layaAir需要注意的 微信小程序—...
来源: Laya_社区 发布时间: 20220602
...lass SettingDialog extends Laya.Dialog { constructor() { super(); this.loadScene('assets/scenes/dialogs/SettingDialog.scene'); } }{ "x":0, "type":"Dialog", "selectedBox":2, "selecteID":3, "searchKey":"Dialog", "props":{"width":1624,"sceneColor":"#000000","runtime":"script/view/dialogs/SettingDialog....
来源: Laya_社区 发布时间: 20200417
...rite: Sprite3D, renderableMap: Map>) { // 将节点添加到场景中 this.scene.addChild(sprite); } ``` 4. 自定义部分 1. 添加动画示例 - 厘米秀人物模型共用一套骨骼, 在 unity 中使用对应骨骼模型导出 *.lani 动画数据文件, 加载到人物上 - 可自行添加...
来源: Laya2.0_文档 发布时间: 20210715
...ayaMonkey.lm", Laya.Handler.create(this, function(mesh) { var layaMonkey = scene.addChild(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.7071067); //创建材质 var customMateri...
来源: Laya2.0_文档 发布时间: 20210714
...prite Video Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name videoElement CAMERA MP4 OGG SUPPORT_MAYBY SUPPORT_NO SUPPORT_PROBABLY WEBM drawtocanvCtx Accessors active activeInHierarchy alpha blendMode buffered cacheAs comp...
来源: Laya3.0_api 发布时间: 20231102
...der VSlider Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize changeHandler hitTestPrior isVertical mouseThrough name showLabel tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy allowClickBack alpha anchorX anchorY bar blendMo...
来源: Laya3.0_api 发布时间: 20231115
...p Index Constructors constructor Properties _extra _graphics _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy align alpha anchorX anchorY autoPlay blendMode bottom cacheAs centerX centerY clipH...
来源: Laya3.0_api 发布时间: 20231115