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

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

201. 分享:TiledMap设置viewport后黑屏问题! [ 57%]

...p.TiledMap; import laya.maths.Rectangle; import laya.utils.Handler; public class LayaAirDemo { private var tiledMap:TiledMap; public function LayaAirDemo() { // 不支持WebGL时自动切换至Canvas Laya.init(1100, 800); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER...

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

202. 进度条组件 · LayaAir3.0文档 · LAYABOX [ 57%]

...用于描述加载进度。需要添加如下的示例代码: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.ProgressBar }) public progressBar: Laya.ProgressBar; @property({ type: Laya.Text }) public loadText: Laya.Text; //组...

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

203. laya.d3.renderobjs.nativeobj.NativeBounds_API3.0 [ 57%]

...rted Menu Globals "laya/d3/RenderObjs/NativeOBJ/NativeBounds" NativeBounds Class NativeBounds Hierarchy NativeBounds Implements IClone Index Constructors constructor Properties MemoryBlock_size Accessors max min Methods _getBoundBox calculateBoundsintersection clone cloneTo getCenter getExtent getMa...

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

204. Sprite3D添加组件或脚本(ActionScript-3D基础(AS3)-LayaAir3D之精灵) [ 57%]

...址](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=3D&class=laya.d3.component.Script3D)),在3D世界的开发中脚本类会在很多地方被使用,该组件将会在后面的脚本篇中详细的讲解,在本篇只是简单的讲解如何给Sprite3D添加一个脚本。 ...

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

205. laya.d3.math.Matrix4x4 [ 57%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames Matrix4x4Properties | Methods | Constants Packagelaya.d3.mathClasspublic class Matrix4x4InheritanceMatrix4x4 ObjectImplements laya.d3.core.IClone Matrix4x4 类用于创建4x4矩阵。 Public Properties PropertyDefined ...

来源: Laya2.0_api 发布时间: 20190513

206. 高级应用-渲染纹理 [ 57%]

...= 0; i < spirit3D._childs.length; i++) setMaterials(spirit3D._childs[i]); }class RenderTextureDemo { private scene: Laya.Scene; private renderTargetCamera: Laya.Camera; private layaPlane: Laya.Sprite3D; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage...

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

207. LayaAir开发笔记(1)五十音图连连看 [ 56%]

...Count += 1; } 4.设置卡片 设置8×3个卡片,正常来说,应该用class封装一下,但是本人偷懒,直接弄了两个数组,一个是card,主要是监听鼠标点击Laya.Event.CLICK事件,用color属性标记对错,用winCount记录成功对数,当成功数达到12时,...

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

208. HTMLDivElement如何设置文本区域内可以上下拖动的效果 [ 56%]

...MLDivElement; import laya.maths.Rectangle; import laya.webgl.WebGL; public class HelloLaya { private var html:HTMLDivElement; public function HelloLaya() { Laya.init(600, 600,WebGL); Laya.stage.bgColor="#eeffcc"; var sp:Sprite=new Sprite(); sp.graphics.drawRect(50,50,300,300,null,"#0000FF",2); Laya....

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

209. ProgressBar 代码问题 [ 56%]

...g.changeValue); }); 进度条代码: import Handler = Laya.Handler; export class Onloading extends ui.LoadingUI{        constructor(){        super();        this.loadingBar.changeHandler = new Handler(this, this.onChange); } public changeValue():void{        console.log("change"); ...

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

210. 有没有懂tiledmap地图的朋友帮忙看看问什么地图加载不出来 [ 56%]

...t laya.net.Loader; import laya.utils.Handler; import view.TestView; public class LayaUISample { public function LayaUISample() { //初始化引擎 Laya.init(1500, 900); //加载引擎需要的资源 var map1:TiledMap = new TiledMap(); map1.createMap("aa.json",new Rectangle(0,0,1200,720),Handler.crea...

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