大约有 3,124 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0074 秒)
...却可以在舞台上显示多个动画。 代码示例: ```typescript export class SpineBinary { private aniPath = "res/bone/spineboy-pma.skel"; private templet:SpineTempletBinary; private skeleton:SpineSkeleton; private index: number = -1; constructor() { Laya.init(Browser.width, Browser.height,...
来源: Laya2.0_文档 发布时间: 20210715
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/render/PostEffect/ScalableAO" ScalableAO Class ScalableAO BloomEffect 类用于创建环境光遮罩效果。 Hierarchy PostProcessEffect ScalableAO Index Constructors constructor Accessors...
来源: Laya3.0_api 发布时间: 20231115
...Element import Sprite = Laya.Sprite import Box = Laya.Box /** 公告栏 */ export default class Notice extends View { /** 滚动区域 */ hornBox: Box /** html对象 */ html: HTMLDivElement /** 滚动框的宽度 */ defaultX = 1110 /** 动画是否出于播放状态 */ isPlayIng:boolean = false /** ...
来源: Laya_社区 发布时间: 20180314
...aui/aui'; import { Game } from './public/Game'; import Stage = Laya.Stage; export class TexasMain{ private balls:Laya.Sprite = ; constructor(){ Config.isAntialias = true // alert("宽"+Laya.Browser.clientWidth+"高"+Laya.Browser.clientHeight ); // Laya.init(Laya.Browser.clientWidth,Laya.Browser.clie...
来源: Laya_社区 发布时间: 20180226
...有范例 我这里提供一下其他的类型的范例供大家参考 export default class TestScript extends Laya.Script { /** @prop {name:intType, tips:"整数类型示例", type:Int, default:1000}*/ public intType: number = 1000; /** @prop {name:numType, tips:"数字类型示例", type:Number...
来源: Laya_社区 发布时间: 20181215
...nt = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_Container { // 该容器用于装载4张猩猩图片 private apesCtn: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.sta...
来源: Laya_示例 发布时间: 20260824
...wser = Laya.Browser; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class Tween_SimpleSample { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_...
来源: Laya2.0_示例 发布时间: 20260824
...赋值的示例如下: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Tree }) public tree: Laya.Tree; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { //初...
来源: Laya3.0_文档 发布时间: 20251010
...2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? LayaTree v1.0.5版本更新(2021.11.17) LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) 关于微信7.0.3版本之后的版本,微信小游戏 Android 端调整 “在...
来源: Laya_社区 发布时间: 20231228
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "Config3D" Config3D Class Config3D Config3D 类用于创建3D初始化配置。 Hierarchy Config3D Index Properties BVH_Min_Build_nums BVH_limit_size BVH_max_SpatialCount customResolution debugFrustumCul...
来源: Laya3.0_api 发布时间: 20231115