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

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

551. laya.utils.Byte [ 36%]

...| All Classes | Index | Frames No Frames ByteProperties | Methods | Constants Packagelaya.utilsClasspublic class ByteInheritanceByte Object Byte 类提供用于优化读取、写入以及处理二进制数据的方法和属性。 Byte 类适用于需要在字节层访问数据的高级开发...

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

552. 压缩纹理 · LayaAir3.4 · 引擎文档 · LAYABOX [ 36%]

...路径即可。以给Image组件添加皮肤为例,示例代码如下: const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { onAwake(): void { let img = new Laya.Image; Laya.stage.addChild(img); img.pos(500,100); img.skin = "resources/layabox.png"; //纹理压...

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

553. laya.d3.math.Matrix3x3 [ 36%]

...l Classes | Index | Frames No Frames Matrix3x3Properties | Methods | Constants Packagelaya.d3.mathClasspublic class Matrix3x3InheritanceMatrix3x3 ObjectImplements laya.d3.core.IClone Matrix3x3 类用于创建3x3矩阵。 Public Properties PropertyDefined By  elements : Float32Array矩阵...

来源: laya_api 发布时间: 20170929

554. laya.d3.math.Matrix3x3 [ 36%]

...l Classes | Index | Frames No Frames Matrix3x3Properties | Methods | Constants Packagelaya.d3.mathClasspublic class Matrix3x3InheritanceMatrix3x3 ObjectImplements laya.d3.core.IClone Matrix3x3 类用于创建3x3矩阵。 Public Properties PropertyDefined By  elements : Float32Array矩阵...

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

555. 动画状态机 · LayaAir3.4 · 引擎文档 · LAYABOX [ 36%]

...e 来判断是否某个动画状态是否播完,例如下面的代码: const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { @property( { type: Laya.Label } ) private label: Laya.Label; @property( { type: Laya.Sprite3D } ) private target: Laya.Sprite3D; private...

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

556. IDE1.7.19.1beta打包apk后后,播放spine动画出现图片缺失 [ 36%]

...Mode = "none"; Laya.stage.alignH = "center"; Laya.stage.alignV = "middle"; const spine: Laya.Skeleton = new Laya.Skeleton(); spine.pos(100, 400); spine.load('res/spine/princess1.sk', new Laya.Handler(this, () => { Laya.stage.addChild(spine); spine.play(0, true); })); index.html  <html> &lt...

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

557. laya.utils.Byte [ 35%]

...| All Classes | Index | Frames No Frames ByteProperties | Methods | Constants Packagelaya.utilsClasspublic class ByteInheritanceByte Object Byte 类提供用于优化读取、写入以及处理二进制数据的方法和属性。 注意: Byte 类适用于需要在字节层访问数据的...

来源: laya_api 发布时间: 20170929

558. 如何启用摇一摇 [ 35%]

...updata(event:AccelerometerEvent):void { // TODO Auto-generated method stub const k:Number=5; var accX:Number=Math.round(event.accelerationX*k)/k; var accY:Number=Math.round(event.accelerationY*k)/k; var accZ:Number=Math.round(event.accelerationZ*k)/k; sum+=Math.abs(accX-oldAccX); sum+=Math.abs(accY-...

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

559. 精灵 · LayaAir3.4 · 引擎文档 · LAYABOX [ 35%]

...在Scene2D下添加一个自定义组件脚本,并添加如下代码: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Sprite }) public sprite1: Laya.Sprite; @property({ type: Laya.Sprite }) publ...

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

560. Sprite-屏幕截图 [ 35%]

...发语言、LayaAirIDE让项目开发更高效。class Sprite_ScreenShot { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; this.btnArr = ["res/threeDimen/ui/button.png", "res/threeDimen/ui/button.png", "res/threeDimen/ui/button.png"]; this.nameArr = ["canvas截...

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