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

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

2291. Panel使用文档(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 50%]

...ort laya.ui.Image; import laya.ui.Panel; import laya.utils.Handler; public class PanelTest { public function PanelTest() { //初始化引擎 Laya.init(800,600); //预加载所需资源 Laya.loader.load("res/atlas/comp.atlas",Handler.create(this,onLoaded)); } private function onLoaded():void { //实...

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

2292. Label属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 50%]

....layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=UI&class=laya.ui.Label)。 ​ Label 组件的资源示例: ​ ![图片0.png](img/1.png) ​ (图1) ​ Label组件拖放到编辑区后,设置 text 属性的值为 LayaAir IDE 后的显示效果如下: ​ ![图片0....

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

2293. 升级到3.0-beta6无法选择资源了 [ 50%]

...,点击选择弹出框显示None,也无法拖放! 代码如下: @regClass() export class NewScript extends Laya.Script {     //declare owner : Laya.Sprite3D;      @property(String)     public text: string = "";      @property(Laya.Image)     public image: Laya.Image = null;     ...

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

2294. 请问Laya如何使用第三方物理库 [ 50%]

...() { this.world.step(1 / 60); }   再把CANNON.Body包装成组件 export class CannonRigidbody extends Laya.Script3D { static map: { [key: number]: Laya.Sprite3D } = {}; body: CANNON.Body; t: Laya.Transform3D; public onCollisionCB: (s: Laya.Sprite3D) => void; public ignoreRotate: boolean = fals...

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

2295. 求助,屏幕旋转后滚动条没有跟随旋转 [ 50%]

...求助,屏幕旋转后滚动条没有跟随旋转 module dialog { export class WanF extends ui.dialog.WanFUI { constructor() { super(); this.rotation = 90; this.pos(1060, 280); let panel = new Laya.Panel(); panel.size(638, 527); panel.vScrollBarSkin = "CommDialog/vscroll.png"; this.sp_wanfa.addChi...

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

2296. 内置骨骼动画 · LayaAir3.4 · 引擎文档 · LAYABOX [ 50%]

...用的类,Laya.Templet 是用于处理资源 代码示例: const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { private mCurrIndex: number = 0; private mArmature: Laya.Skeleton; onStart() { console.log("Game start"); //加载内置骨骼动画资源 Laya.loade...

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

2297. Laya构建App后AndroidStudio中用真机调试模式下运行,App打开了,但是不能打开游戏的问题。 [ 50%]

...p 06-20 19:10:18.494 5371-5371/com.ReleaseTest.Four E/MPlugin: Unsupported class: com.mediatek.common.telephony.IOnlyOwnerSimSupport 06-20 19:10:18.528 5371-5371/com.ReleaseTest.Four W/art: Attempt to remove local handle scope entry from IRT, ignoring 06-20 19:10:18.541 5371-5371/com.ReleaseTest.Fou...

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

2298. laya.resource.TextureCube_API3.0 [ 50%]

...ternals Only exported Menu Globals "laya/resource/TextureCube" TextureCube Class TextureCube TextureCube 类用于生成立方体纹理。 Hierarchy BaseTexture TextureCube Index Constructors constructor Properties _id destroyedImmediately lock name url uuid DEBUG Accessors anisoLevel baseMipmapLeve...

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

2299. list 加载动画为什么实现的效果会错乱掉? [ 50%]

...; ani.scale(80/bounds.width ,80/bounds.height) this.addChild(ani) } } Laya.class(Item1, "Item1", Box); var List = Laya.List; function setup(effList) { var list = new List(); list.itemRender = Item1; list.repeatX = 3; list.repeatY = 4; list.x = (Laya.stage.width - WID * list.repeatY) / 2 - 100; list....

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

2300. iframe页面嵌套下失焦(焦点在父窗口被聚焦),playMusic背景音乐播放无声音 [ 50%]

...unction playSound(url:String, loops:int = 1, complete:Handler = null, soundClass:Class = null, startTime:Number = 0):SoundChannel { if ((!_isActive && loops != 0) || !url) return null; if (_muted) return null; _recoverWebAudio(); url = URL.formatURL(url); if (url == _tMusic) { if (_musicMute...

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