大约有 595 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0119 秒)
Laya_社区(200) Laya2.0_示例(114) Laya3.0_文档(99) Laya2.0_api(91) laya_api(48) Laya_示例(24) Laya2.0_文档(16) Laya3.0_api(3)
...| All Classes | Index | Frames No Frames ByteProperties | Methods | Constants Packagelaya.utilsClasspublic class ByteInheritanceByte Object Byte 类提供用于优化读取、写入以及处理二进制数据的方法和属性。 Byte 类适用于需要在字节层访问数据的高级开发...
来源: Laya2.0_api 发布时间: 20190513
...路径即可。以给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
...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
...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
...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
...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> <...
来源: Laya_社区 发布时间: 20181120
...| All Classes | Index | Frames No Frames ByteProperties | Methods | Constants Packagelaya.utilsClasspublic class ByteInheritanceByte Object Byte 类提供用于优化读取、写入以及处理二进制数据的方法和属性。 注意: Byte 类适用于需要在字节层访问数据的...
来源: laya_api 发布时间: 20170929
...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
...在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
...发语言、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