大约有 480 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0049 秒)
...个的一个方法,走进了第二方法里 请问有没有方法能够获取“鼠标是否处于按下状态”? TextInput重写onFocus和onBlur事件监听不到 LayaNative ios上js访问不到JSBridge类中的方法,请求官方帮助, FD 宏编译时 出现 试图访问该方法时失败 ...
来源: Laya_社区 发布时间: 20180621
...1 0 0 分享 微博 QZONE 微信 chasel 赞同来自: 有没有接口是:获取旧的shader program, 设置新的program, 更新uniform值后, 再设置成旧的shader program?? 2018-11-21 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 感谢对laya的支持与信任,您...
来源: Laya_社区 发布时间: 20181121
...s.maxRight = 0; //如果不开启autoSize 父容器的宽度和高度无法获取 this.autoSize = true; //初始化的时候将坐标放到屏幕右边 this.x = Config.GameWidth; //y坐标取一个随机值 为什么是32 因为我们的整个素材是 32 * 20 拼起来的 this.y = 32 * 6 + 32 * par...
来源: Laya_社区 发布时间: 20160803
...应该放在哪里最合适 2.导入第三方JS模块后,想要在ide内获取到TS的提示,应该如何设置d.ts 2018-08-05 添加评论 已悬赏20元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 日新月异 赞同来自: Sol...
来源: Laya_社区 发布时间: 20180805
... Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 repeat repeat: number = 0 Defined in laya/effect/EffectBase.ts:15 重复次数,默认为播放一次 Optional runInEditor runInEditor: boolean Inherited from Component.runInEditor Defined in laya/c...
来源: Laya3.0_api 发布时间: 20231115
... Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 repeat repeat: number = 0 Inherited from EffectBase.repeat Defined in laya/effect/EffectBase.ts:15 重复次数,默认为播放一次 Optional runInEditor runInEditor: boolean Inherited from Compon...
来源: Laya3.0_api 发布时间: 20231115
... Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 repeat repeat: number = 0 Inherited from EffectBase.repeat Defined in laya/effect/EffectBase.ts:15 重复次数,默认为播放一次 Optional runInEditor runInEditor: boolean Inherited from Compon...
来源: Laya3.0_api 发布时间: 20231115
...残留下的资源需要分别使用`Laya.loader.getRes(url:String)`接口获取到资源(Resource)对象之后,再调用资源对象的`destroy()`方法进行销毁。但是这种方法是非常麻烦的。LayaAir2.0为了方便开发者,提供了`Resource.destroyUnusedResources()`接口统...
来源: Laya2.0_文档 发布时间: 20210715
...且不会随着绘制内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true。示例代码如下: let sprite = new Laya.Sprite(); // 添加到舞台 Laya.stage.addChild(sprite); sprite.autoSize = true; 3.4.4 缓存为静态图像 示例代码如下: let...
来源: Laya3.0_文档 发布时间: 20251010
...残留下的资源需要分别使用`Laya.loader.getRes(url:String)`接口获取到资源(Resource)对象之后,再调用资源对象的`destroy()`方法进行销毁。但是这种方法是非常麻烦的。LayaAir2.0为了方便开发者,提供了`Resource.destroyUnusedResources()`接口统...
来源: Laya2.0_文档 发布时间: 20210715