大约有 3,008 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0054 秒)
Laya_社区(1073) Laya3.0_api(672) Laya2.0_api(368) laya_api(298) Laya2.0_文档(233) Laya_示例(146) Laya2.0_示例(118) Laya3.0_文档(100)
...= Laya.Browser; import WebGL = Laya.WebGL; import Stat = Laya.Stat; export class Animation_SWF{ private SWFPath:string = "h5/res/Map11.swf"; private MCWidth:number = 760; private MCHeight:number = 650; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(760,650, WebGL); Laya...
来源: Laya_社区 发布时间: 20171103
...r ts code: ============================================================ class Game{ private ProtoBuf:any = Browser.window.dcodeIO.ProtoBuf; ... } err code: ============================================================ TypeError: Cannot read property 'ProtoBuf' of undefined at new ...
来源: Laya_社区 发布时间: 20170222
API DocumentationAll Packages | All Classes | Index | Frames No Frames ITreeNodeMethods Packagelaya.d3.core.sceneInterfacepublic interface ITreeNodeImplementors OctreeNode ... Public Methods MethodDefined By addTreeNode(renderObj:BaseRender):voidITreeNode cullingObjects(boundFrustum:...
来源: laya_api 发布时间: 20170929
...置见下图代码和附件DEMO中的TestScene.scene文件 export default class GameUI extends Laya.Scene { constructor() { super(); //设置单例的引用方式,方便其他类引用 GameUI.instance = this; //关闭多点触控,否则就无敌了 Laya.MouseManager.multiTouchEnabled = false; //...
来源: Laya_社区 发布时间: 20190730
...步的。因此我将load方法放到了createChildren函数里面去。 class MyView extends ui.view.MyViewUI { constructor() { super(); } createChildren():void { super.createChildren(); let assets = [ { url: "res/atlas/ui/shared.atlas", type: Loader.ATLAS }, { url: "res/atlas/ui/myview.atlas", typ...
来源: Laya_社区 发布时间: 20180113
...al.__super.call(this); this.setShaderName("CustomShader"); } Laya.class(CustomMaterial, "CustomMaterial", Laya.BaseMaterial); CustomMaterial.DIFFUSETEXTURE = 1; CustomMaterial.NORMALTEXTURE = 2; CustomMaterial.ALPHATESTVALUE = 0; CustomMaterial.prototype.getDiffuseTexture = function (...
来源: Laya_社区 发布时间: 20170526
...就出问题了。是要把unity场景导入到laya2.6. export default class SceneLoad extends Laya.Script{ constructor(){ super(); } onAwake(){ Laya.Scene3D.load("res/LayaScene_demo/Android/demo.ls",Laya.Handler.create(this,function(scene...
来源: Laya_社区 发布时间: 20200516
...ernals Only exported Menu Globals "laya/d3/core/MeshRenderer" MeshRenderer Class MeshRenderer MeshRenderer 类用于网格渲染器。 Hierarchy BaseRender MeshRenderer SkinnedMeshRenderer Implements IBoundsCell Index Constructors constructor Properties _extra _receiveShadow _singleton owner runInEd...
来源: Laya3.0_api 发布时间: 20231115
...显示的x,y坐标和宽高? 代码: import TiledMap = Laya.TiledMap; class GameMain{ private tMap:TiledMap; constructor() { Laya.init(935, 224, Laya.WebGL); this.tMap = new TiledMap(); var viewRect: Laya.Rectangle = new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height); this.tMap.create...
来源: Laya_社区 发布时间: 20190214
...全文如下: package { import laya.display.Text; public class LayaSample { public function LayaSample() { //初始化引擎 Laya.init(1136, 640); ...
来源: Laya_社区 发布时间: 20171011