大约有 1,546 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0055 秒)
Laya_社区(545) Laya3.0_api(360) Laya2.0_api(247) laya_api(208) Laya2.0_文档(120) Laya3.0_文档(64) Laya2.0_示例(2)
...一个主类: private var score:int; public function main():void { new class(callback); } private function callback(num:int):void { this.score = num; var tmp:int = this.score; trace(tmp); } 另外一个类:class.as 里面有个方法 public function class(callback:Function):v...
来源: Laya_社区 发布时间: 20161125
...钮)的功能,全部代码如下所示: ```typescript export default class ImageRunTime extends Laya.Image{ constructor(){ super(); this.scaleTime = 100; //设置组件的中心点 this.anchorX = this.anchorY = 0.5; //添加鼠标按下事件侦听。按时时缩小按钮。 this.on(Laya.Event...
来源: Laya2.0_文档 发布时间: 20210715
...d3/core/particleShuriKen/module/RotationOverLifetime" RotationOverLifetime Class RotationOverLifetime RotationOverLifetime 类用于粒子的生命周期旋转。 Hierarchy RotationOverLifetime Implements IClone Index Constructors constructor Properties enable Accessors angularVelocity Methods clone...
来源: Laya3.0_api 发布时间: 20231115
...als "laya/d3/core/particleShuriKen/module/GradientDataInt" GradientDataInt Class GradientDataInt GradientDataInt 类用于创建整形渐变。 Hierarchy GradientDataInt Implements IClone Index Constructors constructor Accessors gradientCount Methods add clone cloneTo Constructors constructor new Gr...
来源: Laya3.0_api 发布时间: 20231115
...u Globals "laya/d3/component/Animator/AnimatorPlayState" AnimatorPlayState Class AnimatorPlayState AnimatorPlayState 类用于创建动画播放状态信息。 Hierarchy AnimatorPlayState Index Constructors constructor Accessors animatorState currentState duration normalizedTime Constructors constru...
来源: Laya3.0_api 发布时间: 20231115
...ted Menu Globals "laya/d3/core/render/PostProcessEffect" PostProcessEffect Class PostProcessEffect PostProcessEffect 类用于创建后期处理渲染效果。 Hierarchy PostProcessEffect ColorGradEffect BloomEffect ScalableAO GaussianDoF Index Constructors constructor Accessors active Methods effec...
来源: Laya3.0_api 发布时间: 20231115
...打开链接查看:[https://layaair.ldc.layabox.com/api/?category=Bone&class=laya.ani.bone.Skeleton](https://layaair2.ldc2.layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=Animation&class=laya.ani.bone.Skeleton) 创建文档类DragonBonesDemo.as,代码编写如下: ```jav...
来源: Laya2.0_文档 发布时间: 20210714
...d3/core/particleShuriKen/module/VelocityOverLifetime" VelocityOverLifetime Class VelocityOverLifetime VelocityOverLifetime 类用于粒子的生命周期速度。 Hierarchy VelocityOverLifetime Implements IClone Index Constructors constructor Properties enable space Accessors velocity Methods clone ...
来源: Laya3.0_api 发布时间: 20231115
...编写代码如下: ```java package { import laya.display.Sprite; public class Main { public function Main() { //初始化舞台 Laya.init(1334,750); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" var img:Sprite = new Sprite(); //加载显示图片,坐标位于100,50 img.loadImage("res/i...
来源: Laya2.0_文档 发布时间: 20210715
...库 2.2.0beta 新手小白 不明白为什么都是null 的export default class startScene extends Laya.Scene { private sp: Sprite; public constructor() { super(); console.log("startScene"); console.log(Laya.stage.name); console.log(Laya.stage.numChildren); console.log(this.numChildren); console.log...
来源: Laya_社区 发布时间: 20190904