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

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

321. laya.d3.core.material.unlit.UnlitTestMaterial_API3.0 [ 52%]

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

322. Cannot read property 'rayCast' of undefined [ 52%]

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

323. 使用3D UI · LayaAir3.4 · 引擎文档 · LAYABOX [ 52%]

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

324. Sprite-遮罩-放大镜 [ 52%]

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

325. [LayaAir2]在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 52%]

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

326. 有关Laya3D碰撞检测疑问 [ 51%]

有关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

327. laya.d3.core.pixelline.PixelLineMaterial_API3.0 [ 51%]

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

328. 动画实例在调用含有名字参数的时候获取不到边界 [ 51%]

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

329. Sprite-切换纹理 [ 51%]

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

330. laya.d3.core.material.EffectMaterial_API3.0 [ 51%]

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