大约有 350 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0040 秒)
Laya_社区(97) Laya_示例(78) Laya2.0_示例(68) Laya3.0_api(55) Laya2.0_文档(35) Laya3.0_文档(6) laya_api(6) Laya2.0_api(5)
...bVV(p6, p4)).concat(B2Math.SubVV(p5, p4)).join(","); } const dampingRatio: number = 0.5; const frequencyHz: number = 10.0; let distanceJoint1: DistanceJoint = new DistanceJoint(); distanceJoint1.otherBody = legBody2; distanceJoint1.selfAnchor = p2; distanceJoint1.otherAnchor = B2Math.SubVV(p5, p4); ...
来源: Laya2.0_示例 发布时间: 20240930
...Laya.Button; private zombieAnimator: Laya.Animator; private curStateIndex: number = 0; private clipName: Array = ["walk", "attack", "left_fall", "right_fall", "back_fall"]; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREE...
来源: Laya_示例 发布时间: 20240930
...", "fixedwidth", "fixedheight"]; //当前适配模式索引 private index: number = 0; //全局文本信息 private txt: Text; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(1136, 640, WebGL); //设置适配模式 Laya.stage.scaleMode = "noscale"; //设置横竖屏 Laya.stage.sc...
来源: Laya2.0_示例 发布时间: 20240930
...s Main { private _roomId = 0; constructor(roomId?: number) { this._roomId = roomId; Laya.init(750, 1218, Laya.WebGL); Laya.Browser.document.title = 'GG游戏; if (Laya.Browser.onPC) { ...
来源: Laya_社区 发布时间: 20181208
...刷新几次就变大了。 class GameMain{ public static pxTimes: number = Laya.Browser.height / Laya.Browser.clientHeight; constructor() { console.log('ch=' + Laya.Browser.clientHeight + ', h=' + Laya.Browser.height + ', pxTimes=' + GameMain.pxTimes); Laya...
来源: Laya_社区 发布时间: 20170403
...dude2.getChildAt(0).getChildAt(0) as Laya.SkinnedMeshSprite3D; for (var i: number = 0; i < skinnedMeshSprite3d.skinnedMeshRender.materials.length; i++) { var mat: Laya.StandardMaterial = skinnedMeshSprite3d.skinnedMeshRender.materials[i] as Laya.StandardMaterial; //高光贴图 mat.specularTexture =...
来源: Laya_示例 发布时间: 20240930
....transform.localScale = new Laya.Vector3(0.002, 0.002, 0.002); for (var i: number = 0; i < monster2._childs.length; i++) { var meshSprite3D: Laya.MeshSprite3D = monster2._childs[i] as Laya.MeshSprite3D; var material: Laya.BlinnPhongMaterial = meshSprite3D.meshRender.material as Laya.BlinnPhongMateri...
来源: Laya_示例 发布时间: 20240930
...ya.Sprite3D.WORLDMATRIX, Laya.Shader3D.PERIOD_SPRITE] }; var customShader: number = Laya.Shader3D.nameKey.add("CustomShader"); var vs: string = "attribute vec4 a_Position;\n" + "uniform mat4 u_MvpMatrix;\n" + "uniform mat4 u_WorldMat;\n" + "attribute vec3 a_Normal;\n" + "varying vec3 v_Normal;\n" + ...
来源: Laya_示例 发布时间: 20240930
...templet:SpineTempletBinary; private skeleton:SpineSkeleton; private index: number = -1; constructor() { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; Stat.show(); this.startFun(); } private startFun(): void { //创建动...
来源: Laya2.0_文档 发布时间: 20210715
... default verbosity = 0 I/cr_LibraryLoader: Expected native library version number "71.0.3578.99", actual native library version number "71.0.3578.99" W/cr_ChildProcLH: Create a new ChildConnectionAllocator with package name = com.google.android.webview, sandboxed = true I/cr_BrowserStartup: Initiali...
来源: Laya_社区 发布时间: 20190723