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

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

531. 性能测试-卡通人物 [ 66%]

...andler = Laya.Handler; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class PerformanceTest_Cartoon { private colAmount = 100; private extraSpace = 50; private moveSpeed = 2; private rotateSpeed = 2; private characterGroup: Array; constructor() { // 不支持WebGL时自动切换至Canvas...

来源: Laya_示例 发布时间: 20240930

532. 小白求助,为何这个工程的 onOpened 没有执行 [ 66%]

... import {ui} from "../ui/layaMaxUI"; import MyDialogUI = ui.MyDialogUI;  export class MyDialog extends MyDialogUI { constructor() { super(); }  onOpened(param: any): void { console.log("mylog------" ); } } 附件 : --> 示例工程.zip 2019-09-08 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

533. Sprite-节点控制 [ 66%]

...nt = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_NodeControl { private ape1: Sprite; private ape2: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.AL...

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

534. 骨骼动画-适配版Spine [ 66%]

...适用结尾为.skel的资源 import SpineSkeleton = Laya.SpineSkeleton; export class SpineBinary { private aniPath = "res/bone/spineboy-pma.skel"; private templet:SpineTemplet; private skeleton:SpineSkeleton; private index: number = -1; constructor() { Laya.init(Browser.width, Browser.height, WebGL...

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

535. laya.filters.ColorFilter_API3.0 [ 66%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/filters/ColorFilter" ColorFilter Class ColorFilter ColorFilter 是颜色滤镜。使用 ColorFilter 类可以将 4 x 5 矩阵转换应用于输入图像上的每个像素的 RGBA 颜色和 Alpha ...

来源: Laya3.0_api 发布时间: 20231115

536. laya.d3.graphics.MeshInstanceGeometry_API3.0 [ 66%]

...ilable ts Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/graphics/MeshInstanceGeometry" MeshInstanceGeometry Class MeshInstanceGeometry Hierarchy GeometryElement MeshInstanceGeometry Index Constructors constructor Properties _geometryElementOBj Access...

来源: Laya3.0_api 发布时间: 20231102

537. laya.d3.core.pixelline.PixelLineFilter_API3.0 [ 66%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/pixelLine/PixelLineFilter" PixelLineFilter Class PixelLineFilter PixelLineFilter 类用于线过滤器。 Hierarchy GeometryElement PixelLineFilter Index Constructors constructor Properties...

来源: Laya3.0_api 发布时间: 20231115

538. 位图切片组件 · LayaAir3.0文档 · LAYABOX [ 66%]

...实现脚本控制Clip: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Clip }) public clip: Laya.Clip; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this....

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

539. Sprite-轴心点 [ 66%]

...nt = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_Pivot { private sp1: Sprite; private sp2: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDD...

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

540. 骨骼动画-多纹理 [ 66%]

...rowser = Laya.Browser; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class MultiTexture { private mAniPath:string; private mStartX:number = 400; private mStartY:number = 500; private mFactory:Templet; private mActionIndex:number = 0; private mCurrIndex:number = 0; private mArmature:Skel...

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