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

大约有 1,443 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0045 秒)

1041. 类似古文显示方式脚本,文字垂直显示,可以控制显示速度出现打字效果等 [ 46%]

...ault:5}*/ public horizontalSpace: number = 5; private sprite: Laya.Sprite; constructor() { super(); this.sprite = new Laya.Sprite(); } drawText(x: number, y: number, w: number, h: number) { console.log(2222); var j = 0;//控制行列 var printNumber = 0;//当前输出字数 var fonts = this.fontSize...

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

1042. 编译Typescript项目时卡死,通过node断点调试layaair-cmd,已定位是tsSort.js问题 [ 46%]

...c/LayaSample.ts import WebGL = Laya.WebGL; // 程序入口 class GameMain{ constructor() { Laya.init(600,400, WebGL); } static wallet:com.battlecry.idle_m.data_proto.WalletModel; } new GameMain();        然后编译就卡死         Bug调试: 经过node inspect 发现是layaair-cmd 目...

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

1043. VBOX动态增加的元素没有自动布局 [ 46%]

...import Loader = laya.net.Loader; class TestUI extends ui.test.TestPageUI { constructor() { super(); var btn1=new ui.test.view_btnUI(); var btn1_btn:laya.ui.Button=btn1.getChildByName("btn") as laya.ui.Button; //问题一: 这里为什么获取不到子node呢?打印显示btn1_btn为null console....

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

1044. 文本-下划线 [ 46%]

...Text = Laya.Text; import WebGL = Laya.WebGL; export class Text_Underline { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(600, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgCo...

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

1045. 引用3d物理引擎失败,有文件丢失 Laya3D._physics3D.btVector3 找不到 [ 46%]

...sics3D.btVector3 找不到 TypeError: Laya3D._physics3D.btVector3 is not a constructor preload.js:55 at new PhysicsSimulation (file:///E:/ycyheroH5/ycyZYWZW/Client/bin/js/bundle.js:12452:27) at new Scene3D (file:///E:/ycyheroH5/ycyZYWZW/Client/bin/js/bundle.js:69360:28) at BoBingPanelView.__proto.in...

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

1046. DOM元素-视频 [ 46%]

...nt, reference, 0, 0, reference.width, reference.height]);class DOM_Video { constructor() { Laya.init(800, 600); Laya.stage.bgColor = "#FFFFFF"; Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; // 创建Video元素 var videoElement:any = Laya.Browser.createEle...

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

1047. 微信小游戏无法用bin目录调试,只能发布后在release/wxgame/中调试 [ 46%]

...on/",  运行报错 gameContext?id=1:58 libs/laya.ui.js: TypeError: Class constructor Component cannot be invoked without 'new' at new Widget (laya.ui.js:201) at laya.ui.js:349 at laya.ui.js:1 at wrapFn (gameContext?id=1:51) at require (VM505 WAGameSubContext.js:2) at a (VM505 WAGameSubContext.js:2...

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

1048. 怎么像canvas那样做到每次循环去清空一次画布,我发现每次画的时候他会把上一次的坐标也画出来,导致变形了,该如何让他每次累加的同时清空上次的路径 [ 46%]

...路径 var sp; var x = 0; export default class Scene extends Laya.Sprite{ constructor(){ super(); Laya.init(500, 300, Laya.WebGL); var bg = new Laya.Sprite(); bg.loadImage("comp/hunter.jpg"); this.addChild(bg); Laya.timer.frameLoop(1,this,this.move); // drawSomething(); } move() { sp = new Laya.Spri...

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

1049. laya.d3.math.Vector2 [ 46%]

...opertypublic var x:NumberX轴坐标yproperty public var y:NumberY轴坐标Constructor DetailVector2()Constructorpublic function Vector2(x:Number = 0, y:Number = 0) 创建一个 Vector2 实例。 Parameters x:Number (default = 0) — X轴坐标。  y:Number (default = 0) — Y轴坐标。 Method De...

来源: Laya2.0_api 发布时间: 20190513

1050. laya.device.geolocation.Geolocation [ 46%]

...y,意味着getCurentPosition()直到位置可用时才会返回信息。 Constructor DetailGeolocation()Constructorpublic function Geolocation()Method DetailclearWatch()method public static function clearWatch(id:int):void 移除watchPosition安装的指定处理器。 Parameters id:intgetCurrentP...

来源: laya_api 发布时间: 20170929