大约有 35 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0029 秒)
...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
....WebGL; public class Text_Scroll { private var txt:Text; private var prevX:Number = 0; private var prevY:Number = 0; public function Text_Scroll() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); createText(); } private function createText():vo...
来源: Laya2.0_文档 发布时间: 20210715
...动画最后一帧的索引值, */ private aniUrls(aniName:string,length:number):any{ var urls:any = []; for(var i:number = 0;i<length;i++){ //动画资源路径要和动画图集打包前的资源命名对应起来 urls.push("role/"+aniName+i+".png"); } return urls; } } new AtlasAniDemo(); ``` ...
来源: Laya2.0_文档 发布时间: 20210715
...动文本 private createTween():void{ //"LayaBox字符串总宽度" var w:number = 800; //文本创建的起始位置(>>在此使用右移运算符,相当于/2 用>>效率更高) var offsetX:number = Laya.stage.width - w >> 1; //显示的字符串 var demoString:string = "LayaBox"; var letterText:...
来源: Laya2.0_文档 发布时间: 20210715
... Laya.WebGL; export class HelloLayabox { private txt: Text; private prevX: number = 0; private prevY: number = 0; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.AL...
来源: 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
...剪 | 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_文档 发布时间: 20210714
...序入口 class GameMain{ private tMap:Laya.TiledMap; private scaleValue:number = 0; private MapX:number = 0; private MapY:number = 0; private mLastMouseX:number; private mLastMouseY:number; constructor() { //初始化舞台 Laya.init(Laya.Browser.width,Laya.Browser.height,Laya.WebGL); //创建Tiled...
来源: Laya2.0_文档 发布时间: 20210715
...; Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.changeAction); } tActionID:number=0; changeAction() { this.tActionID++; var aniCount:number; //获取动画动作数量 aniCount=this.skeleton.getAnimNum(); this.tActionID=this.tActionID%aniCount; //显示当前要播放的动画名 this.text.text=this...
来源: Laya2.0_文档 发布时间: 20210715