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

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

601. 发布微信后无法触发mouse_up事件 [ 68%]

...布微信后无法触发mouse_up事件 /** 初始化资源加载完成 */ private initF():void{ Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseHandler); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseHandler); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseHandler); } private mouseHa...

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

602. Animation 的createFrames 使用已经加载的图集缓存动画失败 [ 68%]

...们好方便快速的查找问题。     public class Animation_Altas { private const AniConfPath:String = "res/fighter/fighter.json"; private var fly:Animation; public function Animation_Altas() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebG...

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

603. 获取sprite对象的 width和height为0 [ 68%]

...象的 width和height为0  /** * 船 */ class Boat extends Laya.Sprite { private bt:Laya.Sprite; constructor() { super() this.bt = new Laya.Sprite() this.bt.loadImage("res/boat.png") this.addChild(this.bt) } } /** * 游戏背景 */ class BackGround extends Laya.Sprite { //背景图 private bg:Laya....

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

604. 文本-字数限制 [ 68%]

...Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createInput(); } private createInput(): void { var inputText: Input = new Input(); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya.stage.height - inputText.height >> 1; // 设置字体样式...

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

605. [LayaAir3]支付宝小游戏使用TTF字体异常 [ 68%]

...下。 2024-05-15 0 2 分享 微博 QZONE 微信 devx 赞同来自:     private static applyFont(nativePath: string) {         alert("应用字体=>" + nativePath);         let fontName = my["loadFont"](nativePath) as string;         if (fontName) {             Laya.Config.def...

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

606. CheckBox属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 68%]

...代码:** ```typescript // 程序入口 class GameMain{ //资源路径 private skin1:string = "checkbox.png"; private skin2:string = "checkbox.png"; constructor() { //初始化引擎,设置宽高并开启WebGL渲染模式 Laya.init(600,400,Laya.WebGL); //设置舞台背景颜色 Laya.stage.bgCol...

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

607. ViewStack属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 68%]

...lic class ComponentDemo { /**包含tab与viewStack组件的测试页面**/ private var comp:ComponentDemoUI; public function ComponentDemo() { Laya.init(1334,750, WebGL); Laya.stage.scaleMode = "full"; Laya.stage.bgColor = "#ffffff"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.l...

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

608. 屏幕适配-自动竖屏 [ 68%]

... Stage.SCREEN_VERTICAL; Laya.stage.bgColor = "#232628"; this.showText(); } private showText(): void { var text: Text = new Text(); text.text = "Orientation-Portrait"; text.color = "gray"; text.font = "Impact"; text.fontSize = 50; text.x = Laya.stage.width - text.width >> 1; text.y = Laya.stage.heigh...

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

609. 屏幕适配-自动横屏 [ 68%]

...tage.SCREEN_HORIZONTAL; Laya.stage.bgColor = "#232628"; this.showText(); } private showText(): void { var text: Text = new Text(); text.text = "Orientation-Landscape"; text.color = "gray"; text.font = "Impact"; text.fontSize = 50; text.x = Laya.stage.width - text.width >> 1; text.y = Laya.stage.heig...

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

610. 文本-单行输入 [ 68%]

...aleMode = "showall"; Laya.stage.bgColor = "#232628"; this.createInput(); } private createInput(): void { var inputText: Input = new Input(); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya.stage.height - inputText.height >> 1; // 移动端输入提...

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