大约有 237 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0064 秒)
...有什么关系呢? demo代码如下// 程序入口 class GameMain{ constructor() { Laya.init(600,400); var sp:Laya.Sprite = new Laya.Sprite(); sp.graphics.drawRect(0,0,50,50,"#ff8822"); Laya.stage.addChild(sp); var delay:number = 5000; var timeLine:Laya.TimeLine = new Laya.TimeLine(); timeLine...
来源: Laya_社区 发布时间: 20170410
...画帧数乱序导致的bug class FrameAnimation extends AnimationBase { constructor() { super(); if (FrameAnimation._sortIndexFun === null) { FrameAnimation._sortIndexFun = MathUtil.sortByKey("index", false, true); } } FrameAnimation初始化时_sortIndexFun 方法没有被赋值 导致_calcu...
来源: Laya_社区 发布时间: 20191115
...Texture2DArray 2D 纹理 数组 Hierarchy BaseTexture Texture2DArray Index Constructors constructor Properties _id depth destroyedImmediately lock name url uuid DEBUG Accessors anisoLevel baseMipmapLevel compareMode cpuMemory defaultTexture destroyed dimension filterMode format gammaCorrection gamma...
来源: Laya3.0_api 发布时间: 20231115
...csAni Class GraphicsAni Graphic动画 Hierarchy Graphics GraphicsAni Index Constructors constructor Accessors cmds Methods addCmd alpha clear clipRect destroy drawCircle drawCurves drawEllipse drawImage drawLine drawLines drawPath drawPie drawPoly drawRect drawTexture drawTextures drawTriangles fill...
来源: Laya3.0_api 发布时间: 20231115
...,子内容按照原始最小宽高比缩放 Hierarchy Box ScaleBox Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgCo...
来源: Laya3.0_api 发布时间: 20231115
...UIComponent Box List LayoutBox Panel UIGroup ScaleBox Tree ViewStack Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgCo...
来源: Laya3.0_api 发布时间: 20231115
...Dictionary()的时候。组件拖动到界面会报错 Dictionary is not a constructor 2017-09-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 赞同来自: 目前IDE中没有Dictionary类...
来源: Laya_社区 发布时间: 20170913
... class CollisionBoll extends Laya.Sprite { private _boll1:Laya.Sprite; constructor() { super(); //物理模块 this._boll1 = new Laya.Sprite(); this.addChild(this._boll1); this._boll1.x = 20; this._boll1.loadImage('comp/btn_close.png'); let box:laya.physics.BoxCollider = this._boll1.addComponent(...
来源: Laya_社区 发布时间: 20190428
...outBox 是一个布局容器类。 Hierarchy Box LayoutBox HBox VBox Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy align alpha anchorX anchor...
来源: Laya3.0_api 发布时间: 20231115
...收机制 */ @regClass() export default class Bullet extends Laya.Script { constructor() { super(); } onEnable(): void { //设置初始速度 let rig: Laya.RigidBody = this.owner.getComponent(Laya.RigidBody); rig.setVelocity({ x: 0, y: -10 }); } onTriggerEnter(other: any, self: any, contact: any): v...
来源: Laya3.0_文档 发布时间: 20241014