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

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

391. Handler.create的回收问题 [ 85%]

...,默认为true。可下面代码为什么结果是false? module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Test { private h1: Laya.Handler; private h2: Laya.Handler; constructor() { // 不支持WebGL时自动切...

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

392. Sprite-绘制各种形状 [ 85%]

..."] ], { fillStyle: "#00ffff" }); } } new Sprite_DrawShapes();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import WebGL = Laya.WebGL; export class Sprite_DrawShapes { private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(740, 400, WebGL); Lay...

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

393. 使用laya官方示例代码制作微信小游戏无法显示 [ 85%]

... 使用的官方示例代码为(为小游戏做了轻微的改动): import WebGL = Laya.WebGL import Handler = Laya.Handler module laya { import Stage = Laya.Stage; import Label = Laya.Label; import WebGL = Laya.WebGL; export class UI_Label { constructor() { // // 不支持WebGL时自动切换...

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

394. 新手入坑请教下各位大神关于LayaMaxUI问题 [ 85%]

...atically generated by LayaAirIDE, please do not make any modifications. */ import View=Laya.View; import Dialog=Laya.Dialog; import Scene=Laya.Scene; var REG: Function = Laya.ClassUtils.regClass; export module ui.test { export class TestSceneUI extends Laya.Scene {         public scoreLbl:La...

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

395. UI-FontClip [ 85%]

...ClipNum); Laya.stage.addChild(clipnum1); } } new Font_Clip(); module laya{ import Stage=Laya.Stage; import FontClip=Laya.FontClip; import Image=Laya.Image; import WebGl=Laya.WebGL; export class Font_Clip{ private TestClipNum:string="res/comp/fontClip_num.png"; private _ClipNum:string="res/comp/fontC...

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

396. textInput的单行输入&多行输入(TypeScript-LayaAir基础篇(TS)-文本) [ 85%]

...一行未满的情况下在下一行输入。 ```typescript module laya { import Input = Laya.Input; import Stage = Laya.Stage; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class HelloLayabox { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidt...

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

397. Clip属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 85%]

...项目中需要的Clip。 **示例代码:** ```typescript module laya { import Stage = Laya.Stage; import Button = Laya.Button; import Clip = Laya.Clip; import Image = Laya.Image; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Clip { private buttonSkin: string = "res/ui/...

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

398. Laya3.0.2IDE中,设置tsconfig.json中的paths配置无效 [ 85%]

...内容相关的链接 提交 1 个回复 Laya_phhh 赞同来自: Main.ts: import observe  from "@observe";   tsconfig: "@observe": ["utils/observe"], 2023-08-07 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 y...

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

399. LayaFlash如何使用chrome调试问题? [ 85%]

...以自己创建。项目入口文件类Main.as的代码如下: package { import flash.display.Sprite; import flash.events.Event; public class Main extends Sprite { public function Main() { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(event:Event = n...

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

400. 屏幕适配-缩放-No Border [ 85%]

...= Laya.stage.height / 2; } } new SmartScale_Scale_NOBORDER();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_NOBORDER { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_NOBORDER; Laya.stage.bgColor = "#2...

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