大约有 1,253 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0049 秒)
...如何让他每次累加的同时清空上次的路径 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); /...
来源: Laya_社区 发布时间: 20190520
...题,位置定位是没错,而且都是整数的移动地图的。 export default class MapSprite extends Laya.Image{ isShow:boolean = false; name:string = ""; constructor() { super(); } loadImageAndPos(name:string,posX:number,posY:number):void { this.name = name; this.anchorX = 0; this.anch...
来源: Laya_社区 发布时间: 20190315
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/physics/joint/RevoluteJoint" RevoluteJoint Class RevoluteJoint 旋转关节强制两个物体共享一个锚点,两个物体相对旋转 Hierarchy JointBase RevoluteJoint Index Constructors const...
来源: Laya3.0_api 发布时间: 20231115
...dler = Laya.Handler; import WebGL = Laya.WebGL; import Event = Laya.Event; export class InputDevice_Compasss { private compassImgPath:string = "res/inputDevice/kd.png"; private compassImg:Sprite; private degreesText:Text; private directionIndicator:Sprite; private firstTime:Boolean = true; construct...
来源: Laya2.0_示例 发布时间: 20250221
LayaAir引擎 内存释放问题 export class ResUIModuleManager { /** * 模块资源路径 */ private static moduleResPath: string = 'res/atlas/{0}.json'; /** * 模块的资源名称和模块的主面板(模块的主面板类全名,模块资源图集名称[]) * @type {Laya.Dictionary} * @mem...
来源: Laya_社区 发布时间: 20170905
...ilable ts Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/render/ScreenTriangle" ScreenTriangle Class ScreenTriangle ScreenTriangle 类用于创建全屏三角形。 Hierarchy Resource ScreenTriangle Index Constructors constructor Properties desto...
来源: Laya3.0_api 发布时间: 20231102
...件 代码运行结果: const { regClass, property } = Laya; @regClass() export class UI_Dialog extends Laya.Script { private DIALOG_WIDTH: number = 220; private DIALOG_HEIGHT: number = 275; private CLOSE_BTN_WIDTH: number = 43; private CLOSE_BTN_PADDING: number = 5; private assets: any[]; private...
来源: Laya3.0_文档 发布时间: 20230303
...2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 版本不匹配! 全局 tsc (2.2.2) != VS Code 的语言服务(2.1.5)。可能出现不一致的编译错误 预设怎么在代码中使用 动画混合无效(版本2.6) 求助关于TiledMap的版本问题 求...
来源: Laya_社区 发布时间: 20170302
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/physics/CircleCollider" CircleCollider Class CircleCollider 2D圆形碰撞体 Hierarchy ColliderBase CircleCollider Index Constructors constructor Properties _extra _singleton fixture label owner r...
来源: Laya3.0_api 发布时间: 20231115
...在入口函数中自行决定打开某个场景。代码示例如下: export async function main() { console.log("Hello LayaAir!"); } 如果开发者不使用启动脚本作为入口,仍然使用启动场景作为入口也是可以的,可以按照后面第二节的介绍设置脚本即可。 ...
来源: Laya3.0_文档 发布时间: 20250103