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

大约有 1,106 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0055 秒)

261. runTime使用(JavaScript-IDE篇(JS)-组件化开发相关) [ 68%]

...示: ```typescript export default class ImageRunTime extends Laya.Image{ constructor(){ super(); this.scaleTime = 100; //设置组件的中心点 this.anchorX = this.anchorY = 0.5; //添加鼠标按下事件侦听。按时时缩小按钮。 this.on(Laya.Event.MOUSE_DOWN,this,this.scaleSmall); //...

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

262. worker的问题 [ 68%]

...iled to construct 'Worker': Please use the 'new' operator, this DOM object constructor cannot be called as a function." 2018-01-08 0 0 分享 微博 QZONE 微信 fool_tiger 赞同来自: 还要在index.html中写啊,我以为在as3脚本里写就行了? 2018-01-08 0 1 分享 微博 QZONE 微信 ...

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

263. 音频节点 · LayaAir3.3 · 引擎文档 · LAYABOX [ 68%]

...prite3D; @property({ type: Laya.SoundNode }) public sound: Laya.SoundNode; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.sound.source = "resources/sound.wav"; //音频路径 this.sound.lo...

来源: Laya3.0_文档 发布时间: 20251010

264. Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 [ 68%]

...发现个新问题 import Sprite = Laya.Sprite; class Test extends Sprite{ constructor(){ super(); this._initView(); } private _initView():void { let sprite:Sprite = new Sprite(); sprite.loadImage("res/scene/1001/layer1/qiang.jpg", 100, 100, 100, 100); this.addChild(sprite); sprite = new Sprite(); s...

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

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

266. Laya2.2问题,有没有遇到的? [ 68%]

...? 子域所有代码 (function () { 'use strict';  class GameConfig { constructor() { } static init() { var reg = Laya.ClassUtils.regClass; } } GameConfig.width = 640; GameConfig.height = 1136; GameConfig.scaleMode = "fixedwidth"; GameConfig.screenMode = "none"; GameConfig.alignV = "top"; GameCon...

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

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

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

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

270. laya.d3.math.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 fromArray length lengthSquared normalize scale set setValue toArray toDefault vadd vsub...

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