大约有 3,033 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0056 秒)
Laya_社区(1088) Laya3.0_api(672) Laya2.0_api(368) laya_api(298) Laya2.0_文档(233) Laya_示例(146) Laya2.0_示例(118) Laya3.0_文档(110)
...ternals Only exported Menu Globals "laya/resource/TextureCube" TextureCube Class TextureCube TextureCube 类用于生成立方体纹理。 Hierarchy BaseTexture TextureCube Index Constructors constructor Properties _id destroyedImmediately lock name url uuid DEBUG Accessors anisoLevel baseMipmapLeve...
来源: Laya3.0_api 发布时间: 20231115
...)执行代码可以发现移动父级,子物体本地位置异常。 class PhysicsWorldBaseCollider{ constructor(){ //初始化引擎 Laya3D.init(0, 0); //设置画布模式 Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.sta...
来源: Laya_社区 发布时间: 20200223
...打开超大分辨率图片 WebGL 模式无法正常显示 // 程序入口 class GameMain{ constructor() { Laya.init(900,1440,Laya.WebGL); //WebGL Laya.Stat.show(0,0); let sp:Laya.Sprite = new Laya.Sprite; //sp.loadImage("comp/big.png"); //读取分辨率小的图片 正常 sp.loadImage("comp/hug.pn...
来源: Laya_社区 发布时间: 20180314
...API](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=Core&class=laya.d3.resource.models.PrimitiveMesh)。 创建时需注意的是,加载到场景中的引擎自带模型,轴心点在模型正中心,因此我们是以模型中心点为参考进行移动、旋转、缩放。加...
来源: Laya2.0_文档 发布时间: 20210715
...ndow.sceneSelectroommultiple); delete window.sceneSelectroommultiple; Laya.class(StartgameUI, "StartgameUI", startgameUI); var sceneStartgame = new StartgameUI(); window.sceneStartgame= sceneStartgame; Laya.stage.addChild(sceneStartgame); 5个场景,4个跳转,前2个正常,后2个不正常,...
来源: Laya_社区 发布时间: 20180815
...lh文件时报错: laya.d3.js:30421 Uncaught Error: Utils3D:unidentified class type in (.lh) file. at Function._createSprite3DInstance (laya.d3.js:30421) at Function._createSprite3DInstance (laya.d3.js:30426) at Function._createNodeByJson02 (laya.d3.js:30458) at Function._p...
来源: Laya_社区 发布时间: 20200106
...er.js的 var LocalStorageAdpt=(function(){ function LocalStorageAdpt(){} __class(LocalStorageAdpt,'BKLaya.adptcodes.LocalStorageAdpt'); LocalStorageAdpt._readData=function(){ if (!BK.FileUtil.isFileExist(LocalStorageAdpt.dataPath)){ return null; } try{ var dataO=BK.FileUtil.readFile(LocalStorageAdpt...
来源: Laya_社区 发布时间: 20181030
API DocumentationAll Packages | All Classes | Index | Frames No Frames DirectionLightProperties | Methods | Events | Constants Packagelaya.d3.core.lightClasspublic class DirectionLightInheritanceDirectionLight LightSprite Sprite3D ComponentNode Node EventDispatcher Object DirectionLight ...
来源: laya_api 发布时间: 20170929
...在网页中有用,在真机上的头条没有视频,案例代码如下class DOM_Video { constructor() { Laya.init(800, 600); Laya.stage.bgColor = "#FFFFFF"; Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; // 创建Video元素 var videoElement:any = Laya...
来源: Laya_社区 发布时间: 20200909
...ya.ui.Button; import laya.utils.Browser; import laya.utils.Handler; public class Main { public function Main() { //初始化引擎 Laya.init(500,500);//初始化引擎 var skins:Array = [ "res/button-1.png" ]; Laya.loader.load(skins, Handler.create(this, onUIAssetsLoaded)); } public function onUIAss...
来源: Laya_社区 发布时间: 20180529