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

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

941. Laya.loader.create 加载进度问题 [ 74%]

...elManager() { Laya.loader.create("res/Pipe/Pipe/a.lh", Laya.Handler.create(this, this.onCreateComplete()),Laya.Handler.create(this, this.onAssetsLoading)); } ModelManager.prototype.onCreateComplete = function () { console.log("onCreateComplete"); var pipe = Laya.loader.getRes("res/Pipe/Pipe/a.lh"); ...

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

942. 蒙皮动画挂点应用 [ 73%]

... // animationNodeTemp.addChild(effect); body.addComponent(SkinAnimations); this.skinAnimation = body.getComponentByType(SkinAnimations) as SkinAnimations; this.skinAnimation._initialize(body); // var tempet:AnimationTemplet = new AnimationTemplet(); var tempet:AnimationTemplet = AnimationTemplet.loa...

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

943. 关于3d的碰撞检测 [ 73%]

...检测的结果一直是-1 相关代码:const field: Laya.MeshSprite3D = this.scene.getChildByName("stadium").getChildByName("field") as Laya.MeshSprite3D;//拿到地板 const sprite3d1MeshCollider: Laya.MeshCollider = field.addComponent(Laya.MeshCollider) as Laya.MeshCollider; sprite3d1MeshCollider...

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

944. 分享:Graphics下cmds命令流的使用! [ 73%]

...','apes/monkey1.png','apes/monkey2.png','apes/monkey3.png'],Handler.create(this,onLoaded)); } private function onLoaded():void { //获取纹理 var texture1:Texture=Loader.getRes('apes/monkey0.png') as Texture; var texture2:Texture=Loader.getRes('apes/monkey1.png') as Texture; var texture3:Texture=L...

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

945. Laya.MiniAdpter.downLoadFile缓存的文件无法读取的问题 [ 73%]

...e) { var args = {url:url, handler:null}; var handler = Laya.Handler.create(this, this.OnDownloadFileInWxOk, [args], false); args.handler = handler; Laya.MiniAdpter.downLoadFile(url, null, handler); } else { this.DoLoadData(url); } } protected DoLoadData(url:string):void { Laya.loader.load(url, Laya....

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

946. 屏幕适配-缩放-No Border [ 73%]

...ya.stage.scaleMode = Stage.SCALE_NOBORDER; Laya.stage.bgColor = "#232628"; this.createCantralRect(); } createCantralRect() { const Sprite = Laya.Sprite; this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } update...

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

947. 屏幕适配-缩放-No Scale [ 73%]

...aya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; this.createCantralRect(); } createCantralRect() { const Sprite = Laya.Sprite; this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } update...

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

948. 2.0label不改变文本内容,label颜色无法直接改变,1.0可以 [ 73%]

...的不同,label才会改变颜色 开启stroke就会出现这种情况   this.label = new Label();             this.label.text = "王小二的摊位";             this.label.fontSize = 15;             this.label.color = "#7CFC00";             this.lab...

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

949. 对话框点击空白处真的无法关闭 [ 73%]

...og = (function () { function selectColorDialog() { SelectColorDialog.super(this); this.name = 'SelectColorDialog'; this.x = 1013; } Laya.class(selectColorDialog, "SelectColorDialog", testUI); return selectColorDialog; }());调用对话框的方法 var dialog = new SelectColorDialog(); dialog.show();...

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

950. LayaAir引擎AS3与Flash原生AS3的开发差异(ActionScript-简介篇(AS3)-LayaAir引擎简介) [ 73%]

...raphics.drawCircle(0,0,50,'#FF0000'); sp.mask=mask; Laya.timer.frameLoop(1,this,function():void { mask.x++; sp.repaint(); }); ``` ## 三、Sprite自身绘制的graphics矢量图形注册事件点击区域差异; ​ 在原生Flash AS3中,Sprite精灵创建完成后会自动计算宽高。但是在...

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