大约有 3,975 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0086 秒)
Laya_社区(2827) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(49)
...ipt三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var HitArea = Laya.HitArea; var WebGL = Laya.WebGL; var red; var guideContainer; var tipContainer; var guideSteps = [ { x: 151, y: 575, radius: 150, tip: "../../res/guide/help...
来源: Laya_示例 发布时间: 20241117
...ipt三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Browser = Laya.Browser; var WebGL = Laya.WebGL; var Render = Laya.Render; var stageWidth = 800; var stageHeight = 600; var Matter = Browser.window.Matter; var LayaRender =...
来源: Laya_示例 发布时间: 20241117
...: 完整附上flash air端和layaAir端代码: 1.flash air端代码: var file:File = File.applicationDirectory; var picPath:String = file.resolvePath("img.png").nativePath;//获取图片路径 //读取图片文件到字节数组 var ...
来源: Laya_社区 发布时间: 20170417
....SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; initShader(); var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.5, 1.5)); camera.addComponent(CameraMoveScript); var layaMonkey = ...
来源: Laya_示例 发布时间: 20241117
... */ public function getBoneCoords(nameOrIndex:*, boneName:String):Array { var arrCoords:Array = ; var aniClipIndex:int = getAniClipIndex(nameOrIndex); var curOriginalData:Float32Array = new Float32Array(_templet.getTotalkeyframesLength(aniClipIndex)); var interval:Number = 1000.0 / _player.cac...
来源: Laya_社区 发布时间: 20190828
...析错误后的调度。TempletProperty DetailaniSectionDicpropertypublic var aniSectionDic:ObjectbindBoneBoneSlotDicproperty public var bindBoneBoneSlotDic:Object 绑定插槽数据的字典 boneSlotArrayproperty public var boneSlotArray:Array 存放插糟数据的数组 boneSlotDicproperty publ...
来源: Laya2.0_api 发布时间: 20190513
...时有一个食物 this.produceFood(); } private initSnake():void { for (var i:number = 0; i 0) { var prevSeg:Segment = this.segments[this.segments.length - 1]; seg.rotation = prevSeg.rotation; var point:Point = seg.getPinPosition(); seg.x = prevSeg.x - point.x; seg.y = prevSeg.y - point.y; } this.s...
来源: Laya2.0_示例 发布时间: 20241117
...果 **exactfit模式示例代码:** ```javascript (function() { var Stage = Laya.Stage; var Text = Laya.Text; var Image = Laya.Image; //适配模式 var modes = "exactfit"; //全局文...
来源: Laya2.0_文档 发布时间: 20200307
...e = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); //初始化照相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transform.rotate(new Laya.Vector...
来源: Laya_示例 发布时间: 20241117
...e = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(0, 6, 10)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true,...
来源: Laya_示例 发布时间: 20241117