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

大约有 1,869 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0048 秒)

1131. drawToTexture 绘制函数不工作呢 [ 74%]

...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

1132. laya.utils.Timer [ 74%]

...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

1133. 动画实例在调用含有名字参数的时候获取不到边界 [ 74%]

...: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

1134. Laya3.0正式版spine3.8的动画资源不能正常显示 [ 74%]

...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

1135. 多光源渲染(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 74%]

...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

1136. 同步龙骨插槽动画方案 [ 74%]

...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

1137. 分享个用美术资源做位图文本的方法。。。 [ 74%]

...据 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

1138. 如何将TTF字体导入到LayaAir编辑器中? [ 74%]

...啊,IDE可以预览 JasonLu • 2018-07-04 15:40 我是这么做的:(1)number.ttf放到工程laya/assets/fonts下面。(2)IDE切到编辑模式,按F5刷新,打开要编辑的UI,把要改的Label的字体改为number,就可以预览效果。(3)按F12刷新和输出到bin中,在游...

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

1139. Config3D的介绍(TypeScript-3D基础(TS)-快速开始一个LayaAir3D项目) [ 74%]

...剪 | Boolean | false | | octreeInitialSize | 八叉树初始化尺寸 | Number | 64.0 | | octreeInitialCenter | 八叉树初始化中心 | Vector3 | (0,0,0) | | octreeMinNodeSize | 八叉树最小尺寸 | Number | 2.0 | | octreeLooseness | 八叉树松散值 | Number | 1.25 | | debugFrustumCulling ...

来源: Laya2.0_文档 发布时间: 20210715

1140. Config3D的介绍(JavaScript-3D基础(JS)-快速开始一个LayaAir3D项目) [ 74%]

...剪 | Boolean | false | | octreeInitialSize | 八叉树初始化尺寸 | Number | 64.0 | | octreeInitialCenter | 八叉树初始化中心 | Vector3 | (0,0,0) | | octreeMinNodeSize | 八叉树最小尺寸 | Number | 2.0 | | octreeLooseness | 八叉树松散值 | Number | 1.25 | | debugFrustumCulling ...

来源: Laya2.0_文档 发布时间: 20210715