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

大约有 1,273 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0062 秒)

621. LayaNative端使用.ttf字体 [ 63%]

...Text; import laya.net.Loader; import laya.utils.Browser; import laya.utils.Handler; public class Test { public function Test() { Laya.init(550,400); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load("hu.ttf",Handler.create(this,onLoaded),null,Loader.BUFFER); } private function onLoaded():void { var arr...

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

622. unity里导出的骨骼动画无法读取 [ 63%]

...下有没有错误   读取代码:    Laya.loader.create("res/1.lh",Handler.create(this,onModelOK),null,Sprite3D); private function onModelOK():void         {              //添加3D场景              var scene:Scene = new Scene();              Laya....

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

623. Sprite3D添加组件或脚本(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 63%]

...en/skinModel/LayaMonkey/LayaMonkey.lh"]; Laya.loader.create(resource, Laya.Handler.create(this, this.onComplete)); } onComplete(){ //记载场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //加载相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(...

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

624. Mesh网格-网格加载 [ 63%]

...Event; import laya.ui.Button; import laya.utils.Browser; import laya.utils.Handler; import laya.utils.Stat; import laya.webgl.WebGLContext; import common.CameraMoveScript; import common.Tool; /** * ... * @author */ public class MeshLoad { public function MeshLoad() { Laya3D.init(0, 0, true); Laya.st...

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

625. ViewStack属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 63%]

...,执行onLoaded回调方法 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个UI实例 this.comp = new ui.ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(this.comp); //点击Tab选择按钮的处理 this.com...

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

626. 【求助】怎么在自定义对象进行实例化的时候,给它绑定监听事件 [ 63%]

...Box。我用List对其进行渲染,在list渲染的时候,执行renderHandler监听函数,对即将渲染的图标进行事件绑定操作。我测试的时候,想让他在鼠标点击的时候打印  test  ,但是没反应。 代码如下:private function showFoods():void{ foodSprite ...

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

627. runTime使用(ActionScript-IDE篇(AS3)-组件化开发相关) [ 63%]

...a.net.AtlasInfoManager; import laya.net.ResourceVersion; import laya.utils.Handler; import laya.utils.Stat; import laya.utils.Utils; import laya.d3.core.particleShuriKen.module.StartFrame; import laya.display.Sprite; import ui.BGPageUI; import ui.MonkeyPageUI; public class Main { public function Mai...

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

628. 微信小游戏wxmin图片加载有点问题 [ 63%]

....jpg') // console.log(123120, ape) // Laya.loader.load('res/mao.jpg', Laya.Handler.create(this, function (){ // var t = Laya.loader.getRes('res/mao.jpg') // console.log(t) // var a = new Laya.Sprite() // a.graphics.drawTexture(t, 0,0) // a.scaleX = 0.3 // a.scaleY = 0.4 // a.pos(0,300) // Laya.stage...

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

629. Laya Label text不显示 [ 62%]

...w.load(SdkUtil.sdkDomain + "sdkres/laya/native/NativeGroup.json", new Laya.Handler(this, function (group: Laya.View) { /* if (this.nativeGroup) { return; } */ self.nativeGroup = group; self.nigrop = new NativeGroup(); self.nativeGroup.addComponentIntance(self.nigrop); self.nativeGroup.zOrder = 99999...

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

630. ui设计模式下属性中var,name有何区别? [ 62%]

...次方图集区别在哪? var 与 name 的详细区别是什么? Laya.Handler.create和new Laya.Handler有啥区别 1.7.20beta有bug,帧属性面板打不开 lh文件内meshSprite添加阴影属性无效 问一下使用AnimationPlayer播放龙骨动画的时候,播放速率和播放时长区...

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