大约有 1,873 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0065 秒)
Laya_社区(617) Laya3.0_api(529) Laya2.0_api(242) laya_api(178) Laya2.0_文档(88) Laya_示例(78) Laya3.0_文档(73) Laya2.0_示例(68)
... let sp:Laya.Sprite = new Laya.Sprite(); let w: number = gl.drawingBufferWidth; let h: number = gl.drawingBufferHeight; let texture2d: Laya.Texture2D = new Laya.Texture2D(w,h,Laya.TextureFormat.R8G8B8A8,false,false); ...
来源: Laya_社区 发布时间: 20200815
...名为TestLib.ts,添加如下代码: interface ITestLib { nativeAdd(a: number, b: number): number; } export const testLib: ITestLib = Laya.importNative("LayaExt.dll"); 接着在组件脚本Main.ts中添加代码: import { testLib } from "./TestLib"; const { regClass, property } = Laya; @regCla...
来源: Laya3.0_文档 发布时间: 20251010
... any; private $running: boolean; private $runTime: number = 0; // 已运行时间 private $lastTime: number; // 上一次时间 /** * 默认状态就是创建一个每一帧刷新一次的计时器 * @param call ...
来源: Laya_社区 发布时间: 20181114
... ageazrael • 2020-04-20 15:06 export class XClass { public get XValue(): number { return 100; } public set XValue(v: number) { console.log(v); } } var x = new XClass(); x["XValue"] = 100; 你运行一下看看呢、这能覆盖函数吗? ageazrael • 2019-08-05 15:22 dataSource你们...
来源: Laya_社区 发布时间: 20190803
...e var m_IsMoving:Boolean = false; private var m_MovStartTime:Number = 0; private var m_MovNeedMs:Number = 0 ; private var m_speed:Number = 150; //每秒移动像素 private var m_curdirection:int = 0 ; private var m_curaniname:S...
来源: Laya_社区 发布时间: 20170921
...parseInt(this.style.fontSize, 10) * this.innerHTML.length; return Number.isNaN(ret) ? this.width : ret; } }, { key: 'clientHeight', get: function get() { var ret = parseInt(this.style.fontSize, 10); return Number.isNaN(ret) ? this.height...
来源: Laya_社区 发布时间: 20180512
...示也会恢复正常。 游戏参数: GameConfig{ static width:number=750; static height:number=1334; static scaleMode:string="showall"; static screenMode:string="vertical"; static alignV:string="middle"; static alignH:string="center"; } windo...
来源: Laya_社区 发布时间: 20200812
...rticleShuriKen/module/shape/BaseShape.ts:26 是否启用。 radius radius: number Defined in laya/d3/core/particleShuriKen/module/shape/SphereShape.ts:12 发射器半径。 randomDirection randomDirection: number = 0 Inherited from BaseShape.randomDirection Defined in laya/d3/core/particleShuriKen/m...
来源: Laya3.0_api 发布时间: 20231115
...rticleShuriKen/module/shape/BaseShape.ts:26 是否启用。 radius radius: number Defined in laya/d3/core/particleShuriKen/module/shape/HemisphereShape.ts:13 发射器半径。 randomDirection randomDirection: number = 0 Inherited from BaseShape.randomDirection Defined in laya/d3/core/particleShuriK...
来源: Laya3.0_api 发布时间: 20231115
...is, this.onMouseUp); } private onMouseDownX : number; private onMouseDownY : number; private isMove : boolean ; onMouseDown(e : laya.events.Event):void{ console.log("MOUSE_DOWN"); this.on(laya.events.Event.MOUSE_MOVE ,this...
来源: Laya_社区 发布时间: 20160823