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

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

761. 分享一个自己做的游戏公告功能,跑马灯效果 [ 46%]

...span>                          </span>" constructor() { super() this.width = 1200 this.height = 55 this.visible = false this.pos(565,150) this._createHorn() this._createBg() this._createView() this.on(Laya.Event.UNDISPLAY,this,this.stop) this.on(Laya.Event.DISPLAY,...

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

762. Spine适配版(JavaScript-LayaAir基础篇(JS)-动画基础) [ 46%]

...TempletBinary; private skeleton:SpineSkeleton; private index: number = -1; constructor() { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; Stat.show(); this.startFun(); } private startFun(): void { //创建动画模板 this...

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

763. typeScript Java互调问题 [ 45%]

...——————————————— class LayaUISample {     constructor() {         Laya.init(1280, 720);         sumToJava();     } } function test() {     console.log("java to js") } function sumToJava() {     alert("js to java");     js2java.back(); } //程序入口 ...

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

764. 2.0里面的组件(Laya.Script)的prop其中几个类型应该怎么设置 [ 45%]

...ctionButtonType, tips:"", type:ActionButton}*/ // public actionButtonType; constructor() { super(); } onEnable(): void { } onDisable(): void { } } 2018-12-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aar...

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

765. 关于graphics.drawPath手机端和PC端不一致的问题 [ 45%]

...t Event = Laya.Event; export class Sprite_DrawShapes { private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(740, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#ff...

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

766. 树状列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

... property } = Laya; @regClass() export class UI_Tree extends Laya.Script { constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { var res: any[] = ["atlas/comp/vscroll.png", "atlas/comp/vscroll$bar.png", "at...

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

767. Sprite-容器 [ 45%]

...tainer { // 该容器用于装载4张猩猩图片 private apesCtn: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "sh...

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

768. 3D场景-地形场景 [ 45%]

...hildByName('Area'); meshSprite3D1.active = false; }); class TerrainScene { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene: Laya.Scene = Laya.stage.addChild(Laya.Scene.load("../../res/t...

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

769. 关于平行光渲染投影问题,求解惑 [ 45%]

... LayaAir3D { private _quaternion: Laya.Quaternion = new Laya.Quaternion(); constructor() { //初始化引擎 Laya3D.init(0, 0, true); //适配模式 Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; let ape: Laya.Sprite = new Laya.Sprite(); Laya.stage.addC...

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

770. 2.0下资源加载和销毁内存问题 [ 45%]

...export default class bitmap extends Laya.Image { private szurl:string="" constructor(url:string){ super() this.onUrlChangeHandler(url); } protected onUrlChangeHandler(url:string):void     { if(this.szurl!="") this.disp() this.szurl=url; if(url==null){ this.graphics.clear(); }else{ this.skin=url;...

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