• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,732 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0067 秒)

521. laya.d3.renderobjs.nativeobj.NativeShadowCullInfo_API3.0 [ 70%]

...s "laya/d3/RenderObjs/NativeOBJ/NativeShadowCullInfo" NativeShadowCullInfo Class NativeShadowCullInfo Hierarchy NativeShadowCullInfo Implements IShadowCullInfo Index Constructors constructor Properties MemoryBlock_size Accessors cullPlaneCount cullPlanes cullSphere direction position Constructors co...

来源: Laya3.0_api 发布时间: 20231115

522. 自己写了个label继承官方的label,出现了问题,求指导~ [ 70%]

...el类:package { // import laya.ui.Label; import laya.webgl.WebGL; public class DemoLabel { public function DemoLabel() { Laya.init(800, 600, WebGL); Laya.stage.bgColor = "#232628"; //---------------------------------这是用我自己写的label继承了官方的label,问题是label显示不出...

来源: Laya_社区 发布时间: 20170516

523. 滤镜-颜色滤镜 [ 70%]

....Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Filters_Color { private ApePath: string = "../../res/apes/monkey2.png"; private apeTexture: Texture; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL);...

来源: Laya_示例 发布时间: 20241002

524. 混合模式-Lighter [ 70%]

... 400, bgColorChannels = { r: 99, g: 0, b: 0xFF }, gradientInterval = 2000; class BlendMode_Lighter { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Sprite = Laya.Sprite, Tween = Laya.Tween; // 不支持WebGL时自动切换至Canvas Laya.init(p...

来源: Laya2.0_示例 发布时间: 20241002

525. Timer Handler被覆盖 [ 70%]

Timer Handler被覆盖   class Timer   _getHandler(caller, method) { var cid = caller ? caller.$_GID || (caller.$_GID = ILaya.Utils.getGID()) : 0; var mid = method.$_TID || (method.$_TID = (Timer._mid++) * 100000); return this._map[cid + mid]; }   当游戏玩的功能多时间长了,随着cal...

来源: Laya_社区 发布时间: 20210701

526. new Laya.TiledMap()提示错误:Laya.TiledMap is not a constructor [ 70%]

new Laya.TiledMap()提示错误:Laya.TiledMap is not a constructor class GameMain{ private tMap:Laya.TiledMap; constructor() { Laya.init(Laya.Browser.width, 224, Laya.WebGL); this.tMap = new Laya.TiledMap(); var viewRect: Laya.Rectangle = new Laya.Rectangle(); this.tMap.createMap("../bin/res/Mari...

来源: Laya_社区 发布时间: 20190212

527. 通过PrimitiveMesh创建简单Mesh(JavaScript-3D基础(JS)-LayaAir3D之模型和网格) [ 70%]

...API](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=Core&class=laya.d3.resource.models.PrimitiveMesh)。 创建时需注意的是,加载到场景中的引擎自带模型,轴心点在模型正中心,因此我们是以模型中心点为参考进行移动、旋转、缩放。加...

来源: Laya2.0_文档 发布时间: 20210715

528. DOM元素-表单输入 [ 70%]

...orm, 100, i * (this.rowSpacing + this.rowHeight), 150, this.rowHeight); } }class DOM_Form{ private form:Laya.Sprite; private rowHeight:number = 30; private rowSpacing:number = 10; constructor() { Laya.init(600,400); Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MI...

来源: Laya_示例 发布时间: 20241002

529. 输入设备-地图 [ 70%]

...Info; import Browser = Laya.Browser; import Handler = Laya.Handler; export class InputDevice_Map { // 百度地图 private map; private marker; private BMap = Browser.window.BMap; private convertor = new this.BMap.Convertor(); // Div private mapDiv; private infoText:Text; constructor() { Laya.init(B...

来源: Laya_示例 发布时间: 20241002

530. 通过PrimitiveMesh创建简单Mesh(TypeScript-3D基础(TS)-LayaAir3D之模型和网格) [ 70%]

...API](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=Core&class=laya.d3.resource.models.PrimitiveMesh)。 创建时需注意的是,加载到场景中的引擎自带模型,轴心点在模型正中心,因此我们是以模型中心点为参考进行移动、旋转、缩放。加...

来源: Laya2.0_文档 发布时间: 20210714