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

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

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

...如何让他每次累加的同时清空上次的路径 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

902. laya.sprite精灵无缝拼接地图,会出现黑线跟白线,使用laya的2.0.1beta版本 [ 53%]

...题,位置定位是没错,而且都是整数的移动地图的。   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

903. laya.physics.joint.RevoluteJoint_API3.0 [ 52%]

...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

904. 输入设备-指南针 [ 52%]

...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_示例 发布时间: 20241001

905. 内存释放问题 [ 52%]

LayaAir引擎 内存释放问题 export class ResUIModuleManager { /** * 模块资源路径 */ private static moduleResPath: string = 'res/atlas/{0}.json'; /** * 模块的资源名称和模块的主面板(模块的主面板类全名,模块资源图集名称[]) * @type {Laya.Dictionary} * @mem...

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

906. laya.d3.core.render.ScreenTriangle_API3.0 [ 52%]

...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

907. UI弹窗 · LayaAir3.0文档 · LAYABOX [ 52%]

...件 代码运行结果: 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

908. 1.7版本要初始化后有些代码才能用了 [ 52%]

...2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 版本不匹配! 全局 tsc (2.2.2) != VS Code 的语言服务(2.1.5)。可能出现不一致的编译错误 预设怎么在代码中使用 动画混合无效(版本2.6) 求助关于TiledMap的版本问题 求...

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

909. laya.physics.CircleCollider_API3.0 [ 52%]

...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

910. laya.particle.ParticleSetting_API3.0 [ 52%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/particle/ParticleSetting" ParticleSetting Class ParticleSetting ParticleSettings 类是粒子配置数据类 Hierarchy ParticleSetting Index Properties ageAddScale blendState boxEmitterCenterPositi...

来源: Laya3.0_api 发布时间: 20231115