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

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

551. 动画状态机 · LayaAir3.3 · 引擎文档 · 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

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

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

553. laya.utils.Byte [ 35%]

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

来源: laya_api 发布时间: 20170929

554. 如何启用摇一摇 [ 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

555. 精灵 · LayaAir3.3 · 引擎文档 · 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

556. 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_示例 发布时间: 20260106

557. laya.maths.Rectangle [ 35%]

...l Classes | Index | Frames No Frames RectangleProperties | Methods | Constants Packagelaya.mathsClasspublic class RectangleInheritanceRectangle Object Rectangle 对象是按其位置(由它左上角的点 (x, y) 确定)以及宽度和高度定义的区域。 Rectangle 类的 x、y、width...

来源: laya_api 发布时间: 20170929

558. 屏幕适配-屏幕适配 [ 35%]

..."full", "fixedwidth", "fixedheight"], index = 0, txt; class SmartScale_T { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Image = Laya.Image, Text = Laya.Text; // 不支持WebGL时自动切换至Canvas Laya.init(550, 40...

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

559. 项目启动入口说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 34%]

...调用) Laya.addAfterInitCallback(()=>{ console.log("after init"); }); const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { onStart() { console.log("Game start"); } } 2.2 场景的脚本说明 前面讲了项目的入口, 本小节简述一下场景的脚本...

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

560. laya.maths.Rectangle [ 34%]

...l Classes | Index | Frames No Frames RectangleProperties | Methods | Constants Packagelaya.mathsClasspublic class RectangleInheritanceRectangle Object Rectangle 对象是按其位置(由它左上角的点 (x, y) 确定)以及宽度和高度定义的区域。 Rectangle 类的 x、y、width...

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