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

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

451. laya.maths.Vector3_API3.0 [ 68%]

...3 类用于创建三维向量。 Hierarchy Vector3 Implements IClone Index Constructors constructor Properties x y z ForwardLH ForwardRH NegativeUnitX ONE UnitX UnitY UnitZ Up ZERO Methods clone cloneTo cross dot equal fromArray length lengthSquared normalize scale set setValue toArray toDefault vad...

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

452. TypeError: Cannot read property 'sv' of null laya.particle.j at Particle2D.__proto.customRender [ 68%]

...数量,目前只找到一个maxParticles 2.0版本,Particle2D is not a constructor Particle2D destroy黑屏 LayaAir新建3D示例项目,在as开发模式下,运行报错 TypeError: Vector3 is not a constructor 问题状态 最新活动: 2019-05-08 18:05 浏览: 863 关注: 2 人 138*****224 ...

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

453. 设置遮罩(TypeScript-LayaAir基础篇(TS)-位图) [ 68%]

... 程序入口 class MaskDemo{ private Res:string; private img:Laya.Sprite; constructor() { Laya.init(1336,640); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //资源路径 this.Res = "res/img/monkey1.png"; //先加载图片资源,在图片资源加载成功后,通过回调方法绘制...

来源: Laya2.0_文档 发布时间: 20210715

454. 屏幕适配-自动竖屏 [ 68%]

...语言、LayaAirIDE让项目开发更高效。class SmartScale_Portrait { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.AL...

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

455. 屏幕适配-自动横屏 [ 68%]

...语言、LayaAirIDE让项目开发更高效。class SmartScale_Landscape { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.A...

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

456. laya.maths.Matrix4x4_API3.0 [ 68%]

...x4 类用于创建4x4矩阵。 Hierarchy Matrix4x4 Implements IClone Index Constructors constructor Properties elements DEFAULT DEFAULTINVERT ZERO Methods clone cloneByArray cloneTo decomposeTransRotMatScale decomposeTransRotScale decomposeYawPitchRoll equalsOtherMatrix getForward getInvertFront get...

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

457. laya.d3.physics.constraints.ConfigurableConstraint_API3.0 [ 68%]

...的约束组件 Hierarchy ConstraintComponent ConfigurableConstraint Index Constructors constructor Properties _extra _singleton disableCollisionsBetweenLinkedBodies owner runInEditor scriptPath CONFIG_MOTION_TYPE_FREE CONFIG_MOTION_TYPE_LIMITED CONFIG_MOTION_TYPE_LOCKED Accessors XMotion YMotion ZM...

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

458. 文本-字数限制 [ 68%]

...开发语言、LayaAirIDE让项目开发更高效。class Text_MaxChars { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV =...

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

459. 2.0按钮添加事件报错 cannot read property 'on' fof undefined [ 68%]

... property 'on' fof undefined class GameLogin extends ui.login.login_bgUI { constructor() { super(); this.btn_register.on("click", this, this.ToRegisterPage); } ToRegisterPage() : void { this.loadScene("login/register_page"); } }   //调用on的时候 直接会报Cannot read property 'on' of undefin...

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

460. laya.d3.math.Vector3_API3.0 [ 67%]

...3 类用于创建三维向量。 Hierarchy Vector3 Implements IClone Index Constructors constructor Properties x y z ForwardLH ForwardRH NegativeUnitX ONE UnitX UnitY UnitZ Up ZERO Methods clone cloneTo cross dot fromArray length lengthSquared normalize scale set setValue toArray toDefault vadd vsub...

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