大约有 1,869 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0048 秒)
Laya_社区(616) Laya3.0_api(529) Laya2.0_api(242) laya_api(178) Laya2.0_文档(88) Laya_示例(78) Laya3.0_文档(70) Laya2.0_示例(68)
...r中opengl函数问题 Text类中竟然没有pos函数的api~ drawCurves(x:Number, y:Number, points:Array, lineColor:*, lineWidth:Number = 1):void 绘制一系列曲线。 new Laya.Sprite();绘制图形以后,怎么删除释放资源? 如何获取Sprite上用graphics.drawTexture绘制的texture...
来源: Laya_社区 发布时间: 20190730
...tyDefined By currFrame : int = 0 当前的帧数。Timer currTimer : Number 当前帧开始的时间。Timer delta : int[read-only] 两帧之间的时间间隔,单位毫秒。Timer scale : Number = 1 时针缩放。TimerPublic Methods MethodDefined By Timer(autoActive:Boolean = true...
来源: Laya2.0_api 发布时间: 20190513
...:34 export default class Scene_Battle extends Laya.Script{ playerUnitReady:number; enemyUnitReady:number; private playerUnit:Laya.Animation[]; private enemyUnit:Laya.Animation[]; constructor(){ super(); Laya.stage.alignH= Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; } onEnab...
来源: Laya_社区 发布时间: 20200910
...Main extends Laya.Script { private skeleton: SpineSkeleton; private index: number = -1; public pageWidth: number; public pageHeight: number; onStart() { console.log("Game start"); Laya.loader.load("resources/res/spineboy-pma.skel", Loader.SPINE).then((templet: SpineTemplet) => { this.skeleton = n...
来源: Laya_社区 发布时间: 20230703
...c var moveRanges: Array = []; public function onUpdate(): void { var seed: Number = Laya.timer.currTimer * 0.002; for (var i: int = 0, n: Number = this.lights.length; i 加载场景,并且添加多光源 ```typescript Scene3D.load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Ha...
来源: Laya2.0_文档 发布时间: 20210714
...r; constructor(url: string, handler: Laya.Handler, aniMode: number = 0) { this._handler = handler; this.mFactory = new Laya.Templet(); this.mFactory.on(Laya.Event.COMPLETE, this, this.parseComplete, [aniMode]); ...
来源: Laya_社区 发布时间: 20200618
...据 private _imageData: Laya.Texture; // 文本字间距 private _padding: number = 0; // 所有元素; private charSprites: Laya.Sprite; // 位置类型 private _posType: string; // 左 右 中 public static LEFT: string = "left"; public static RIGHT: string = "right"; public static CENTER: strin...
来源: Laya_社区 发布时间: 20161014
...啊,IDE可以预览 JasonLu • 2018-07-04 15:40 我是这么做的:(1)number.ttf放到工程laya/assets/fonts下面。(2)IDE切到编辑模式,按F5刷新,打开要编辑的UI,把要改的Label的字体改为number,就可以预览效果。(3)按F12刷新和输出到bin中,在游...
来源: Laya_社区 发布时间: 20180702
...剪 | Boolean | false | | octreeInitialSize | 八叉树初始化尺寸 | Number | 64.0 | | octreeInitialCenter | 八叉树初始化中心 | Vector3 | (0,0,0) | | octreeMinNodeSize | 八叉树最小尺寸 | Number | 2.0 | | octreeLooseness | 八叉树松散值 | Number | 1.25 | | debugFrustumCulling ...
来源: Laya2.0_文档 发布时间: 20210715
...剪 | Boolean | false | | octreeInitialSize | 八叉树初始化尺寸 | Number | 64.0 | | octreeInitialCenter | 八叉树初始化中心 | Vector3 | (0,0,0) | | octreeMinNodeSize | 八叉树最小尺寸 | Number | 2.0 | | octreeLooseness | 八叉树松散值 | Number | 1.25 | | debugFrustumCulling ...
来源: Laya2.0_文档 发布时间: 20210715