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

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

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

...一个圆,然后输入以下代码。 以下是ts文件的全部代码。module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import WebGL = Laya.WebGL; import Event = Laya.Event; export class Sprite_DrawShapes { private sp: Sprite; constructor() { // 不支持WebGL时自动切换...

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

582. 文本-自动调整文本尺寸 [ 46%]

...CAL\n" + "A POWERFUL HTML5 ENGINE ON FLASH TECHNICAL"; return text; } })();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_AutoSize { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550,...

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

583. 性能测试-虫子(慎入) [ 46%]

...height; maggot.pos(x, y); } tick += 0.1; } } new PerformanceTest_Maggots();module laya { import Sprite = Laya.Sprite; import Browser = Laya.Browser; import Handler = Laya.Handler; import Stat = Laya.Stat; import Rectangle = Laya.Rectangle; import WebGL = Laya.WebGL; export class PerformanceTest_Magg...

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

584. 2.0.0beta: 模型贴图不显示+点击事件穿透+其他 [ 46%]

...018-10-12 21:06 ghj 流闻名 • 2018-10-12 21:06 发布微信小游戏:module "code.js" is not defined

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

585. ios打包单机版本问题,显示conchShader找不到和Status bar could not find cached time string image. 然后直接黑屏!!!!!! [ 46%]

...                                      .particleShuriKen.module.shape.SphereShape",e);var n=t.prototype;return n._getShapeBoundBox=function                                                            ReferenceError: ConchShader is not defined       ...

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

586. UI-ProgressBar [ 46%]

...log("进度:" + Math.floor(value * 100) + "%"); } } new UI_ProgressBar();module laya { import Stage = Laya.Stage; import ProgressBar = Laya.ProgressBar; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ProgressBar { private progressBar: ProgressBar; constructor() { // 不...

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

587. 计时器-间隔循环 [ 46%]

...n animateFrameRateBased() { rotateFrameRateBasedText.rotation += 1; } })();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Timer_Interval { private rotateTimeBasedText: Text; private rotateFrameRateBasedText: Te...

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

588. 仿照laya官方demo做了一个视频播放的UI,为啥在微信里不能用? [ 46%]

...高人知识咋回事?代码如下:   /**Created by the LayaAirIDE*/ module view { export class Guide extends ui.GuideUI { constructor() { super(); // 创建Video元素 let videoElmt: any = Laya.Browser.createElement("video"); Laya.Browser.document.body.appendChild(videoElmt); // 设置Video元...

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

589. 文本-自动调整文本尺寸 [ 45%]

...FUL HTML5 ENGINE ON FLASH TECHNICAL"; return text; } } new Text_AutoSize();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_AutoSize { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550,...

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

590. Sprite-节点控制 [ 45%]

...e); } function animate(e) { ape1.rotation += 2; ape2.rotation -= 4; } })();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_NodeControl { private ape1: Sprite; private ape2: ...

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