大约有 1,253 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0045 秒)
...AnimatorStateScript import AnimationDefine from "../AnimationDefine"; export default class AttackState extends Laya.AnimatorStateScript { animator:Laya.Animator; onStateEnter(): void { } onStateExit(): void { if(this.animator) { this.animator.crossFade(AnimationDefine.IDLE,0.5,0,0); } }...
来源: Laya_社区 发布时间: 20181109
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/device/motion/Accelerator" Accelerator Class Accelerator Accelerator.instance获取唯一的Accelerator引用,请勿调用构造函数。 listen()的回调处理器接受四个参数: accelerat...
来源: Laya3.0_api 发布时间: 20231115
...的内容导出生成指定大小的图片,并返回文件路径。 */ export function canvasToTempFilePath( this: string, object: _canvasToTempFilePathObject ): void; 这是wx.d.ts里写的 我看文档说用这个获取分享用 再问下 微信中的Canvas在laya中如何获取啊 ? A • 201...
来源: Laya_社区 发布时间: 20181122
...设置width,但是实际显示是以文本宽度来显示的 示例代码export default class HtmlTest extends Laya.Sprite { constructor() { super(); this.init(); } init() { this.bg = new Laya.Sprite(); this.bg.graphics.drawRect(0, 0, 200, 200, '#ccc'); this.addChild(this.bg); this.htmlTxt = new L...
来源: Laya_社区 发布时间: 20210107
...Laya.VScrollBar; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ScrollBar { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SC...
来源: Laya2.0_示例 发布时间: 20250221
...e = Laya.Sprite; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class PIXI_Example_21 { private colors:Array = ["#5D0776", "#EC8A49", "#AF3666", "#F6C84C", "#4C779A"]; private colorCount:number = 0; private isDown:Boolean = false; private path:Array = []; private color:String = thi...
来源: Laya2.0_示例 发布时间: 20250221
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/component/staticmesh/StaticBatchSubMesh" StaticBatchSubMesh Class StaticBatchSubMesh Hierarchy GeometryElement StaticBatchSubMesh Index Constructors constructor Properties _geometryElementOBj in...
来源: Laya3.0_api 发布时间: 20231115
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/math/BoundFrustum" BoundFrustum Class BoundFrustum BoundFrustum 类用于创建锥截体。 Hierarchy BoundFrustum Implements IClone Index Constructors constructor Accessors bottom far left matr...
来源: Laya3.0_api 发布时间: 20231115
... = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Filters_Glow { private apePath: string = "../../res/apes/monkey2.png"; private ape: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); L...
来源: Laya_示例 发布时间: 20250221
...ilable ts Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/math/Color" Color Class Color Color 类用于创建颜色实例。 Hierarchy Color Implements IClone Index Constructors constructor Properties a b g r BLACK BLUE CLEAR CYAN GRAY GREEN MAGENTA RE...
来源: Laya3.0_api 发布时间: 20231102