大约有 426 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0058 秒)
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/device/motion/Gyroscope" Gyroscope Class Gyroscope 使用Gyroscope.instance获取唯一的Gyroscope引用,请勿调用构造函数。 listen()的回调处理器接受两个参数: function onOr...
来源: Laya3.0_api 发布时间: 20231115
扩展脚本问题,麻烦帮看下 module game { export class testbox extends Laya.Box { constructor(){ super(); console.log(this.getChildByName('btnName')) } } export class testImg extends Laya.Image { constructor(){ super(); console.log(this.getChildByName('name')) console.log(this) } } } 我...
来源: Laya_社区 发布时间: 20180724
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/media/Sound" Sound Class Sound Sound 类是用来播放控制声音的类。 引擎默认有两套声音方案,优先使用WebAudio播放声音,如果WebAudio不可用,则用H5Audio播放,H...
来源: Laya3.0_api 发布时间: 20231115
...nt = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Interaction_Rotate { private sp: Sprite; private preRadian: number = 0; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = S...
来源: Laya_示例 发布时间: 20260930
...nt = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Interaction_Rotate { private sp: Sprite; private preRadian: number = 0; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = S...
来源: Laya2.0_示例 发布时间: 20260930
...ilable ts Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/animation/AnimationTransform3D" AnimationTransform3D Class AnimationTransform3D AnimationTransform3D 类用于实现3D变换。 Hierarchy EventDispatcher AnimationTransform3D Index Constructors ...
来源: Laya3.0_api 发布时间: 20231102
...}的书写方式 : module app{ /** * 登录加载界面 * @author Husz */ export class LoadingView extends Laya.View implements small_lib.ILoadingView那么在GameConfig将会报错 , 因为会自动刷新. 除非采用 , 如下: /** * 登录加载界面 * @author Husz */ export default class Loa...
来源: Laya_社区 发布时间: 20181024
...onfigInfo from "../data/ConfigInfo"; import { ui } from "../ui/layaMaxUI"; export default class RuleDialog extends ui.scene.RuleDialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new L...
来源: Laya_社区 发布时间: 20170215
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/device/motion/Accelerator" Accelerator Class Accelerator Accelerator.instance获取唯一的Accelerator引用,请勿调用构造函数。 listen()的回调处理器接受四个参数: accelerat...
来源: Laya3.0_api 发布时间: 20231115
...Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Sound_SimpleDemo { //声明一个信息文本 private txtInfo: Text; constructor() { // 不支持WebGL时自动切换至Canvas ...
来源: Laya_社区 发布时间: 20201203