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

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

51. laya.device.motion.Gyroscope_API3.0 [ 84%]

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

52. 扩展脚本问题,麻烦帮看下 [ 84%]

扩展脚本问题,麻烦帮看下  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

53. laya.media.Sound_API3.0 [ 84%]

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

54. 鼠标交互-双指旋转(多点触控) [ 84%]

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

55. 鼠标交互-双指旋转(多点触控) [ 83%]

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

56. laya.d3.animation.AnimationTransform3D_API3.0 [ 83%]

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

57. LayaAir2.0的GameConfig.ts [ 83%]

...}的书写方式 : module app{ /** * 登录加载界面 * @author Husz */ export class LoadingView extends Laya.View implements small_lib.ILoadingView那么在GameConfig将会报错 , 因为会自动刷新.  除非采用 , 如下: /** * 登录加载界面 * @author Husz */ export default class Loa...

来源: Laya_社区 发布时间: 20181024

58. 请问laya有没有类似翻页容器(pageView)的组件? [ 83%]

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

59. laya.device.motion.Accelerator_API3.0 [ 83%]

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

60. sound manager在MOUSE_OVER事件中无法播放 [ 83%]

...Handler = Laya.Handler;     import WebGL = Laya.WebGL;      export class Sound_SimpleDemo {         //声明一个信息文本         private txtInfo: Text;          constructor() {             // 不支持WebGL时自动切换至Canvas   ...

来源: Laya_社区 发布时间: 20201203