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

大约有 288 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0042 秒)

81. native 问题实在太多了 使用自定义的动态字经常出现崩溃 [ 78%]

native 问题实在太多了 使用自定义的动态字经常出现崩溃 native在安卓平台实在太多问题了,经常出现莫名其妙的崩溃我使用了一个默认的字体经常会报相关的崩溃信息麻烦技术人员帮我看一下,心态真的搞崩了 #00 pc 00000000002f8f2...

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

82. 滤镜-颜色滤镜 [ 77%]

...镜对象,灰图 let grayscaleFilter = new ColorFilter(grayscaleMat); // 使用 gray 方法实现灰色滤镜 // let grayscaleFilter = new ColorFilter(); // grayscaleFilter.gray(); // 灰度猩猩 let grayApe = this.createApe(); grayApe.filters = [grayscaleFilter]; let secondChild = Laya.stage.get...

来源: Laya2.0_示例 发布时间: 20240930

83. 骨骼动画-换装 [ 77%]

...ror"); } parseComplete() { const Event = Laya.Event; // 创建模式为1,使用动画自己的缓冲区,可以启用换装(相当耗费内存) mArmature = mFactory.buildArmature(1); Laya.stage.addChild(mArmature); mArmature.pos(mStartX, mStartY); // mArmature.scale(0.5, 0.5); mArmature.on(Event....

来源: Laya2.0_示例 发布时间: 20240930

84. 输入设备-地图 [ 77%]

...is.updatePosition); let errorHandler = new Handler(this, this.onError); // 使用高精度位置 Geolocation.enableHighAccuracy = true; Geolocation.watchPosition(successHandler, errorHandler); // 绑定作用域 this.convertToBaiduCoord = this.convertToBaiduCoord.bind(this); } createDom() { const Br...

来源: Laya2.0_示例 发布时间: 20240930

85. laya.device.geolocation.Geolocation [ 77%]

...vice.geolocationClasspublic class GeolocationInheritanceGeolocation Object 使用前可用supported查看浏览器支持。 Public Properties PropertyDefined By  enableHighAccuracy : Boolean = false[static] 如果enableHighAccuracy为true,并且设备能够提供一个更精确的位置,则...

来源: laya_api 发布时间: 20170929

86. laya.device.geolocation.Geolocation [ 77%]

...vice.geolocationClasspublic class GeolocationInheritanceGeolocation Object 使用前可用supported查看浏览器支持。 Public Properties PropertyDefined By  enableHighAccuracy : Boolean = false[static] 如果enableHighAccuracy为true,并且设备能够提供一个更精确的位置,则...

来源: Laya2.0_api 发布时间: 20190513

87. 缓动-简单的Tween [ 76%]

...wLine(terminalX, 0, terminalX, Laya.stage.height, "#FFFFFF"); // characterA使用Tween.to缓动 Tween.to(characterA, { x : terminalX }, 1000); // characterB使用Tween.from缓动 characterB.x = terminalX; Tween.from(characterB, { x:0 }, 1000); } createCharacter(skin) { const Sprite = Laya.Sprite; le...

来源: Laya2.0_示例 发布时间: 20240930

88. 屏幕适配失效 [ 75%]

...但showall非全屏,会有黑边),根据屏幕长宽比,自动选择使用SCALE_FIXED_WIDTH或SCALE_FIXED_HEIGHT*/ public static const SCALE_FIXED_AUTO:String = "fixedauto"; 2018-05-19 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人...

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

89. 组件装饰器说明 · LayaAir3.0文档 · LAYABOX [ 75%]

...装饰器说明一、@regClass()二、@property()2.1 组件属性的常规使用2.2 属性访问器的装饰器使用2.3 是否序列化保存2.4 组件属性是否在IDE中显示2.5 装饰器属性标识的类型2.6 组件属性值的输入控件2.7 组件属性分类与排序2.8 装饰器属性标...

来源: Laya3.0_文档 发布时间: 20240809

90. 3D变换 · LayaAir3.0文档 · LAYABOX [ 75%]

...中移动的结果是相同的,在第5节中会说明二者的区别。 使用平移变换移动立方体,在x、y和z方向上分别移动距离1,示例代码如下: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Sprite3D...

来源: Laya3.0_文档 发布时间: 20230821