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

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

541. Cannot read property 'toDefault' of undefined报错是什么原因 [ 61%]

...get; var isRotate = true; (function() { Laya3D.init(0, 0,true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; scene = Laya.stage.addChild(new Laya.Scene()); scene.shadingMode = Laya.BaseScene.VERTEX_SHADING; Laya.stage.addChild(new MousePickingScene())...

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

542. laya.ani.GraphicsAni_API3.0 [ 61%]

...ext fillText fillTexture getBounds loadImage removeCmd restore rotate save scale strokeText transform translate create recycle Constructors constructor new GraphicsAni(): GraphicsAni Inherited from Graphics.constructor Defined in laya/display/Graphics.ts:54 Returns GraphicsAni Accessors cmds get cmd...

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

543. laya.utils.Timer [ 61%]

...delta : int[read-only] 两帧之间的时间间隔,单位毫秒。Timer  scale : Number = 1 时针缩放。TimerPublic Methods  MethodDefined By  Timer(autoActive:Boolean = true) 创建 Timer 类的一个实例。 Timer  callLater(caller:*, method:Function, args:Array = null):void 延迟执...

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

544. laya.d3.physicscannon.shape.CannonBoxColliderShape_API3.0 [ 61%]

...UPZ Accessors localOffset localRotation sizeX sizeY sizeZ type Methods _setScale clone cloneTo destroy updateLocalTransformations Constructors constructor new CannonBoxColliderShape(sizeX?: number, sizeY?: number, sizeZ?: number): CannonBoxColliderShape Overrides CannonColliderShape.constructor Defi...

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

545. 文本-滚动文本 [ 61%]

...V = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createText(); } createText() { const Text = Laya.Text, Event = Laya.Event; this.txt = new Text(); Laya.stage.addChild(this.txt); this.txt.overflow = Text.S...

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

546. laya.d3.physicscannon.shape.CannonCompoundColliderShape_API3.0 [ 61%]

... SHAPEORIENTATION_UPZ Accessors localOffset localRotation type Methods _setScale addChildShape bindRigidBody clone cloneTo destroy getChildShapeCount removeChildShape updateLocalTransformations Constructors constructor new CannonCompoundColliderShape(): CannonCompoundColliderShape Overrides CannonCo...

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

547. 微信小游戏中iPhoneX的适配问题 [ 61%]

...(750, 1334, Laya.WebGL);     //设置适配模式     Laya.stage.scaleMode = "exactfit";     //实例一个背景     var bg = new Laya.Image();     bg.skin = "res/bg.png";     Laya.stage.addChild(bg); })();    在layaIDE,微信开发者工具模拟器,和iPho...

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

548. laya.maths.Matrix [ 60%]

... Matrix 对象。 Matrix  destroy():void 销毁此对象。 Matrix  getScaleX():Number 获取 X 轴缩放值。 Matrix  getScaleY():Number 获取 Y 轴缩放值。 Matrix  identity():Matrix 将本矩阵设置为单位矩阵。 Matrix  invert():Matrix 执行原始矩阵的逆转换。 Matri...

来源: laya_api 发布时间: 20170929

549. 输入设备-指南针 [ 60%]

...ar firstTime = true; (function() { Laya.init(700, 1024, WebGL); Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.loader.load(compassImgPath, Handler.create(this, init)); })(); function init() { // 创建罗盘 createComp...

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

550. Laya.loader.load(xx) 当地址""的时候,会报错。 [ 60%]

...   map.dir = directory;                     var scaleRate = 1;                     if (this._data.meta && this._data.meta.scale && this._data.meta.scale != 1) {                         scaleRate = parse...

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