大约有 447 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0046 秒)
...rt); 加载场景后报上面图片的错误 GameStart 类如下: export default class GameStart extends ui.GameStartUI { constructor() { super(); this.btnStart.on(Laya.Event.CLICK, this, this.startGame); } startGame(): void { ...
来源: Laya_社区 发布时间: 20190510
...BUG Accessors anisoLevel baseMipmapLevel colorFormat compareMode cpuMemory defaultTexture depthStencilFormat depthStencilTexture destroyed dimension filterMode format gammaCorrection gammaSpace generateDepthTexture generateMipmap gpuMemory height id isCube maxMipmapLevel mipmap mipmapCount multiSamp...
来源: Laya3.0_api 发布时间: 20231115
...个物体移动时候重合但是无法触发onTriggerEnter, export default class BulletControlTrigger extends Laya.Script3D { constructor(){ super(); } /** * 开始触发时执行 * 此方法为虚方法,使用时重写覆盖即可 */ onTriggerEnter(other){ console.log("onTriggerEnter"); }...
来源: Laya_社区 发布时间: 20191215
...BUG Accessors anisoLevel baseMipmapLevel colorFormat compareMode cpuMemory defaultTexture depthStencilFormat depthStencilTexture destroyed dimension filterMode format frameBuffer gammaCorrection gammaSpace generateDepthTexture generateMipmap gpuMemory height id isCube maxMipmapLevel mipmap mipmapCou...
来源: Laya3.0_api 发布时间: 20231115
...鼠标事件检测依据。 Stage对象和UI的View组件默认为true。 default false 优先检测此对象的子对象,当递归检测完所有子对象后,仍然没有找到目标对象,最后再检测此对象。 mouseThrough mouseThrough: boolean = false Inherited from Text.mouseThrough ...
来源: Laya3.0_api 发布时间: 20231115
...又看见video这个元素有 let SoundManager = Laya.SoundManager; export default class LoginGame extends Laya.Scene { constructor() { super(); LoginGame.instance = this; Laya.MouseManager.multiTouchEnabled = false; this.loadScene("LoginGame.scene"); } onEnable() { SoundManager.playMusic("audio/梅...
来源: Laya_社区 发布时间: 20181124
... SoundChannel Defined in laya/media/Sound.ts:24 播放声音。 Parameters Default value startTime: number = 0 开始时间,单位秒 Default value loops: number = 0 循环次数,0表示一直循环 Returns SoundChannel 声道 SoundChannel 对象。 Globals "laya/media/Sound" Sound duration dispose ...
来源: Laya3.0_api 发布时间: 20231115
...Canvas转出图片与游戏内显示颜色差距过大 测试代码 export default class TestView { constructor() { this.init(); } init() { Laya.stage.bgColor='#ffffff'; Laya.stage.addChild(new Laya.Image('comp/img/img1.png')); Laya.t...
来源: Laya_社区 发布时间: 20230419
...问题 Handler.create的最后一个参数,官方解释是 once:Boolean (default = true) — 是否只执行一次,如果为true,回调后执行recover()进行回收,默认为true。可下面代码为什么结果是false? module laya { import Stage = Laya.Stage; import Text = Laya.Text; impo...
来源: Laya_社区 发布时间: 20171221
...本场景添加脚本为组件报错 报一个窗口提示: export default class Start extends Laya.Script { constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,次方法只执行一次 */ onAwake(): void { } /** * 第一次执行upd...
来源: Laya_社区 发布时间: 20181013