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

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

561. 位图字体生效 [ 59%]

...ont.loadFont("res/bitmapFont/test.fnt", new Laya.Handler(this, onLoaded)); function onLoaded(){ mBitmapFont.setSpaceWidth(10); Laya.Text.registerBitmapFont(mFontName,mBitmapFont); let txt = new Laya.Text(); txt.text='手机号 +86'; txt.color='#FFFFFF'; txt.font = mFontName;//===============代码...

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

562. 寻路系统(TypeScript-3D基础(TS)-LayaAir3D之高级应用) [ 59%]

...``typescript //监听鼠标抬起 Laya.stage.on(Laya.Event.MOUSE_UP, this, function() { this.index = 0; //获取每次生成路径 this.getGridIndex(this.path[this.curPathIndex % this.pointCount].x, this.path[this.curPathIndex++ % this.pointCount].z, this.startPoint); this.getGridIndex(this.path[thi...

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

563. CheckBox属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 58%]

.../check.png"; private var skin2:String ="res/component/check_2.png"; public function ComponentDemo() { //初始化引擎,设置宽高并开启WebGL渲染模式 Laya.init(1334,750, WebGL); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //加载图集成功后,执行onLoad回调方法 Laya...

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

564. 材质的加载(ActionScript-3D基础(AS3)-LayaAir3D之Material材质) [ 58%]

...质加载 BaseMaterial.load("res/skyBox2/skyBox2.lmat",Handler.create(this,function(mat:BaseMaterial):void { var skyRenderer:SkyRenderer = camera.skyRenderer; //创建天空盒的mesh skyRenderer.mesh = SkyBox.instance; //设置天空盒材质 skyRenderer.material = mat; })); ``` ![](img/1.png)(图1...

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

565. LayaAir引擎工具会员专属功能介绍(TypeScript-简介篇(TS)-LayaAir引擎简介) [ 58%]

...a.loader.load([{url: "res/Image.json", type: "plf"}], Handler.create(this, function():void { //在回调里,正常使用原来的图集 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, function():void { var img:Texture = Laya.loader.getRes("comp/comp.png"); var sp:Sprite = new Sprite(...

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

566. 提示“AtlasResourceManager:Dispose the inner Atlas。” [ 58%]

...卡滞了 代码类似下面这样 Laya.timer.loop(200, this, showframe); function showframe() {     var url = getimage();     this.sp_video.loadImage(url);     }   2017-08-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...

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

567. macOS系统运行layaair-cmd resourceVersion报错 [ 58%]

...load (module.js:565:32)     at tryModuleLoad (module.js:505:12)     at Function.Module._load (module.js:497:3)     at Function.Module.runMain (module.js:693:10)   请问这个怎么解决,谢谢。 2018-05-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

568. 多光源渲染(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 58%]

...源对应的移动半径数组 public var moveRanges: Array = []; public function onUpdate(): void { var seed: Number = Laya.timer.currTimer * 0.002; for (var i: int = 0, n: Number = this.lights.length; i 加载场景,并且添加多光源 ```typescript Scene3D.load("res/threeDimen/scene/MultiLigh...

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

569. Image属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 58%]

...ort laya.ui.Image; import laya.webgl.WebGL; public class UI_Image { public function UI_Image() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); //画布垂直居中对齐 Laya.stage.alignV = Stage.ALIGN_MIDDLE; //画布水平居中对齐 Laya.stage.alignH = Stage.ALIGN_CENTER;...

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

570. 求助关于TiledMap的版本问题 [ 58%]

...a.webgl.WebGL; public class LayaSample { private var tMap:TiledMap; public function LayaSample() { //初始化引擎 Laya.init(1136, 640,WebGL); //创建TiledMap实例 tMap = new TiledMap(); //创建Rectangle实例,视口区域 var viewRect:Rectangle = new Rectangle(0, 0, Browser.width, Browser.he...

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