大约有 426 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0096 秒)
...ilable ts Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/material/unlit/UnlitTestMaterial" UnlitTestMaterial Class UnlitTestMaterial Hierarchy Material UnlitTestMaterial Implements IClone Index Constructors constructor Properties destoryedImmedia...
来源: Laya3.0_api 发布时间: 20231102
Cannot read property 'rayCast' of undefined export default class indexscene extends Laya.Script { constructor(){ super(); this.rotation = new Laya.Vector3(0, 0.01, 0); this.point = new Laya.Vector2(); this.ray = new Laya.Ray(new Laya.Vector3(),new Laya.Vector3()); //1.开启第四个参数 let conf...
来源: Laya_社区 发布时间: 20200903
... } from "./BloodBar.generated"; import { Main } from "./Main"; @regClass() export class BloodBar extends BloodBarBase { onAwake(): void { this.bar.value = 1; this.value.visible = false; Laya.stage.on(Laya.Event.CLICK, this, this.onHurt); } onHurt(): void { this.bar.value = this.bar.value - 0.9; this...
来源: Laya3.0_文档 发布时间: 20251010
... = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Sprite_MagnifyingGlass { private maskSp:Sprite; private bg2:Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(1136, 640, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH...
来源: Laya2.0_示例 发布时间: 20260930
...用Laya.HtmlVideo播放视频 * @ author:xs * @ data: 2024-03-05 16:20 */ export default class VideoDom { htmlvideo:Laya.HtmlVideo; constructor() { Laya.stage.on(Laya.Event.CLICK,this,this.onClick); } onClick(){ this.initVideo(); } initVideo() { this.htmlvideo = new Laya.HtmlVideo(); this.htmlvideo....
来源: Laya_社区 发布时间: 20240305
有关Laya3D碰撞检测疑问 module test { export class Test { private ray: Laya.Ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); private point: Laya.Vector2 = new Laya.Vector2(); private _outHitAllInfo: Array<Laya.RaycastHit>; private camera: Laya.Camera; private...
来源: Laya_社区 发布时间: 20180820
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/pixelLine/PixelLineMaterial" PixelLineMaterial Class PixelLineMaterial PixelLineMaterial 类用于实现像素线材质。 Hierarchy Material PixelLineMaterial Implements IClone Index Const...
来源: Laya3.0_api 发布时间: 20231115
...20-09-11 15:01 浏览: 2083 关注: 2 人 198*****136 • 2020-09-11 16:34 export default class Scene_Battle extends Laya.Script{ playerUnitReady:number; enemyUnitReady:number; private playerUnit:Laya.Animation[]; private enemyUnit:Laya.Animation[]; constructor(){ super(); Laya.stage.alignH= Laya.St...
来源: Laya_社区 发布时间: 20200910
...r = Laya.Handler; import Browser= Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_SwitchTexture { private texture1: string = "res/apes/monkey2.png"; private texture2: string = "res/apes/monkey3.png"; private flag: boolean = false; private ape: Sprite; constructor() { // 不支持WebGL...
来源: Laya2.0_示例 发布时间: 20260930
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/material/EffectMaterial" EffectMaterial Class EffectMaterial EffectMaterial 类用于实现Mesh特效材质。 Hierarchy Material EffectMaterial Implements IClone Index Constructors constru...
来源: Laya3.0_api 发布时间: 20231115