大约有 550 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0090 秒)
Laya2.0_api(174) laya_api(132) Laya_示例(65) Laya_社区(56) Laya2.0_示例(51) Laya2.0_文档(36) Laya3.0_api(32) Laya3.0_文档(4)
...s:448 创建一个 Material 实例。 Returns Material Properties _id _id: number = 0 Inherited from Resource._id Defined in laya/resource/Resource.ts:97 destroyedImmediately destroyedImmediately: boolean Inherited from Resource.destroyedImmediately Defined in laya/resource/Resource.ts:112 是否在...
来源: Laya3.0_api 发布时间: 20231115
...; export class Interaction_Rotate { private sp: Sprite; private preRadian: number = 0; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.sca...
来源: Laya2.0_示例 发布时间: 20241118
...tage.bgColor = "#232628"; this.setup(); } private setup(): void { var gap: number = 10; //创建一个Sprite充当音效播放按钮 var soundButton: Sprite = this.createButton("播放音效"); soundButton.x = (Laya.stage.width - soundButton.width * 2 + gap) / 2; soundButton.y = (Laya.stage.height -...
来源: Laya2.0_示例 发布时间: 20241118
...ed Public Properties PropertyDefined By cmds : ArrayGraphics height : Number 表示显示对象的高度,以像素为单位。 AutoBitmap sizeGrid : Array 当前实例的有效缩放网格数据。 如果设置为null,则在应用任何缩放转换时,将正常缩放整个显示对象。...
来源: laya_api 发布时间: 20170929
...tage.bgColor = "#232628"; this.setup(); } private setup(): void { var gap: number = 10; //创建一个Sprite充当音效播放按钮 var soundButton: Sprite = this.createButton("播放音效"); soundButton.x = (Laya.stage.width - soundButton.width * 2 + gap) / 2; soundButton.y = (Laya.stage.height -...
来源: Laya_示例 发布时间: 20241118
...dArrayBuffer(4)) // also filters out NaN, non-number types, including empty strings, but allows bigints const valid = ms > 0 && ms < Infinity if (valid === false) { ...
来源: Laya_社区 发布时间: 20201201
... */ Physics.rayCast(ray:Ray, outHitInfo:RaycastHit, distance:Number = Number.MAX_VALUE, layer:int = 0) /** * 在场景中投下可与所有碰撞器碰撞的一条光线,获取发生碰撞的所有碰撞器。 * @param ray 射线...
来源: Laya_社区 发布时间: 20170324
...tage.on(Event.RESIZE, this, this.onResize); this.makeObject(0); for (var i:number = 0; i this.objs) { this.current = 0; } this.makeObject(this.current); } private makeObject(t):void { var xd:number; var i:number; switch (t) { case 0: for (i = 0; i this.tpoint1[i]) { this.tpoint1[i] = this.tpoint1[i]...
来源: Laya_示例 发布时间: 20241118
...tage.on(Event.RESIZE, this, this.onResize); this.makeObject(0); for (var i:number = 0; i this.objs) { this.current = 0; } this.makeObject(this.current); } private makeObject(t):void { var xd:number; var i:number; switch (t) { case 0: for (i = 0; i this.tpoint1[i]) { this.tpoint1[i] = this.tpoint1[i]...
来源: Laya2.0_示例 发布时间: 20241118
...omplete));//加载资源。 } private onLoadComplete(): void { for (var i: number = 0; i < this.skins.length; ++i) { var input: TextInput = this.createInput(this.skins[i]); input.prompt = 'Type:'; input.x = (Laya.stage.width - input.width) / 2; input.y = i * this.SPACING + this.Y_OFFSET; } } private...
来源: Laya_示例 发布时间: 20241118