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

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

441. 一个很奇怪的问题,不知道其他同学遇到没有 [ 69%]

...的程序入口文件,新建一个main.ts,输入以下代码: class main{ constructor(){ Laya.init(600,400); console.log(common.num); } } new main();   这里面访问了另外一个文件common.ts中定义的类: class common{ constructor(){ } public static num : number = 1000000; } 然后启动...

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

442. laya.d3.resource.models.Mesh_API3.0 [ 68%]

...件网格数据模板。 Hierarchy Resource Mesh Implements IClone Index Constructors constructor Properties _id destroyedImmediately lock morphTargetData name url uuid DEBUG MESH_INSTANCEBUFFER_TYPE_NORMAL MESH_INSTANCEBUFFER_TYPE_SIMPLEANIMATOR Accessors bounds cpuMemory destroyed gpuMemory id ind...

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

443. 音频节点 · 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_文档 发布时间: 20240910

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

445. 性能测试-骨骼 [ 68%]

...onArray = [], mFactory, mActionIndex = 0; class PerformanceTest_Skeleton { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Loader = Laya.Loader; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser....

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

446. 文本基础样式(TypeScript-LayaAir基础篇(TS)-文本) [ 68%]

...ser = Laya.Browser; import WebGL = Laya.WebGL; export class HelloLayabox { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "sh...

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

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

448. 动画-SWF动画 [ 68%]

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

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

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

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