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

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

511. 动效问题,没有 ui.TestPUI,官方文档是错的,几年了至今无解答 [ 67%]

...log=Laya.Dialog; var Scene=Laya.Scene; var REG = Laya.ClassUtils.regClass; export class kick_effectUI extends EffectAnimation { //然后又改成Laya.EffectAnimation constructor(){ super(); this.ani1=null; this.effectData =ui.kick_effectUI.uiView;; } } kick_effectUI.uiView={"type":"View","props":{},...

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

512. UI-ProgressBar [ 67%]

...aya.ProgressBar; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ProgressBar { private progressBar: ProgressBar; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CEN...

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

513. 加载-单一类型资源加载 [ 67%]

...Laya.Loader; import Texture = Laya.Texture; import Handler = Laya.Handler; export class Loader_SingleType { constructor() { Laya.init(550, 400); // 加载一张png类型资源 Laya.loader.load("../../res/apes/monkey0.png", Handler.create(this, this.onAssetLoaded1)); // 加载多张png类型资源 La...

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

514. 文本-自动调整文本尺寸 [ 67%]

...ext = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_AutoSize { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showal...

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

515. laya.d3.math.BoundsImpl_API3.0 [ 67%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/math/BoundsImpl" BoundsImpl Class BoundsImpl BoundsImp 类用于创建包围体。 Hierarchy BoundsImpl Implements IClone Index Constructors constructor Properties _boundBox Accessors max min Me...

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

516. laya.components.KeyframeNode2D_API3.0 [ 67%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/components/KeyframeNode2D" KeyframeNode2D Class KeyframeNode2D Hierarchy KeyframeNode2D Index Properties _indexInList _keyFrames _ownerPath _propertys fullPath nodePath Accessors keyFramesCount own...

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

517. 下拉选项框组件 · LayaAir3.0文档 · LAYABOX [ 67%]

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

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

518. 使用typescript开发项目,解决文件引用顺序问题 [ 66%]

...文件引用顺序不正确,我今天试了下,可以使用ts的import/export处理这个问题 一、调试 修改tsconfig.json,把module和target都改为ES6,因为es6的语法和ts很像,调试的时候看es6就可以了,索性把sourceMap也关掉{ "compilerOptions": { "module": "ES6...

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

519. laya.d3.physics.shape.SphereColliderShape_API3.0 [ 66%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/physics/shape/SphereColliderShape" SphereColliderShape Class SphereColliderShape SphereColliderShape 类用于创建球形碰撞器。 Hierarchy ColliderShape SphereColliderShape Implements IClo...

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

520. laya.d3.component.animator.AnimatorTransition_API3.0 [ 66%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/component/Animator/AnimatorTransition" AnimatorTransition Class AnimatorTransition Hierarchy AnimatorTransition Index Constructors constructor Accessors conditions destState exitByTime exitTime ...

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