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

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

521. Image.loadImage 方法加载问题 [ 49%]

...umber) : void {          cell.publicSpaceData = cell.dataSource; } module gamepublicspaceitem {  export class PublicSpaceItem extends Laya.Box  {   public static BTN_ENTRER_CLICK:string = "BtnEnterClick";   public _publicSpaceData:datasheet.PublicSpaceData;   private bg:Laya.Image; ...

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

522. 文本-HTML文本 [ 49%]

...addChild(p); p.href = "res/html/test.html"; p.y = 200; } } new Text_HTML();module laya { import Stage = Laya.Stage; import HTMLDivElement = Laya.HTMLDivElement; import HTMLIframeElement = Laya.HTMLIframeElement; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_HTML { const...

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

523. 计时器-延迟调用 [ 49%]

...align = "middle"; text.align = "center"; Laya.stage.addChild(text); } })();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Timer_CallLater { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Br...

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

524. 背景音乐来回切换报错 [ 49%]

... methods 07-16 13:28:38.922 1760-1760/? E/memtrack: Couldn't load memtrack module (No such file or directory) 07-16 13:28:38.922 1760-1760/? E/android.os.Debug: failed to load memtrack module: -2 07-16 13:28:38.952 1760-1760/? D/AndroidRuntime: Calling main entry com.android.commands.am.Am 07-16 13:...

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

525. 加载-单一类型资源加载 [ 49%]

...etRes("res/apes/monkey2.png"); // 使用资源 } } new Loader_SingleType();module laya { import Loader = Laya.Loader; import Texture = Laya.Texture; import Handler = Laya.Handler; export class Loader_SingleType { constructor() { Laya.init(550, 400); // 加载一张png类型资源 Laya.loader.load("r...

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

526. 滤镜-模糊滤镜 [ 49%]

... BlurFilter(); blurFilter.strength = 5; ape.filters = [blurFilter]; } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import BlurFilter = Laya.BlurFilter; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Filters_Blur { p...

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

527. Sprite-缓存为静态图像 [ 49%]

...图像 textBox.cacheAsBitmap = true; Laya.stage.addChild(textBox); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class Sprite_Cache { constructor() { // 不支持WebGL时自动切换至...

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

528. [LayaAir2]iOS设备,抖音app报错 requestAnimationFrame [ 49%]

...开发者工具打开报错 官网示例摇一摇报错,就解决方案 module写法的模块无法使用,其他地方使用会报错 3d项目-unity添加物理组件 layanative2 打包android平台 报错 btCollisionObject undefined 问题状态 最新活动: 2024-09-25 14:59 浏览: 2714 关...

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

529. Sprite-旋转缩放 [ 49%]

...aleValue = Math.sin(scaleDelta); ape.scale(scaleValue, scaleValue); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_RoateAndScale { private ape: Sprite; private scale...

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

530. Sprite-显示图片 [ 49%]

...awTexture(t, 0, 0); Laya.stage.addChild(ape); ape.pos(200, 0); })); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Texture = Laya.Texture; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Sprite_DisplayImage { ...

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