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

大约有 1,131 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0084 秒)

881. 对接上架字节跳动小游戏技术指南(TypeScript-小游戏适配文档-字节跳动小游戏) [ 56%]

...口使用的基础流程 */ import Browser = Laya.Browser; export default class GameRecorderMgr { /**录屏实例**/ private _recorder: any; static _instance: GameRecorderMgr; /**视频地址**/ private _videoPath: String = ""; constructor() { GameRecorderMgr.instance = this; //判断是否已初始...

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

882. 请问laya有没有类似翻页容器(pageView)的组件? [ 56%]

..."../data/ConfigInfo"; import { ui } from "../ui/layaMaxUI"; export default class RuleDialog extends ui.scene.RuleDialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(thi...

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

883. laya.d3.core.material.ExtendTerrainMaterial_API3.0 [ 56%]

...lobals "laya/d3/core/material/ExtendTerrainMaterial" ExtendTerrainMaterial Class ExtendTerrainMaterial ... author ... Hierarchy Material ExtendTerrainMaterial Implements IClone Index Constructors constructor Properties _id destroyedImmediately lock name renderQueue url uuid ALPHATESTVALUE DEBUG REND...

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

884. 请问LayaAirUnityPlugin 1.1.0.unitypackage导出的.lsani文件怎么使用? [ 56%]

...age资源 以下为加载代码,请问这样使用是否正确:     class ShuiPao extends Sprite3D {         constructor() {             super();             let mesh = Sprite3D.load('resources/shuipao.lh');             this.addChild(mesh);       ...

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

885. Laya.Browser获取宽高数值会变化,iphone6第一次加载正确,刷新几次就变大了。 [ 56%]

...值会变化,iphone6第一次加载正确,刷新几次就变大了。 class GameMain{     public static pxTimes: number = Laya.Browser.height / Laya.Browser.clientHeight;     constructor()     {         console.log('ch=' + Laya.Browser.clientHeight + ', h=' + Laya.Browser.height + ', p...

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

886. laya.d3.core.particleshuriken.ShurikenParticleMaterial_API3.0 [ 56%]

...3/core/particleShuriKen/ShurikenParticleMaterial" ShurikenParticleMaterial Class ShurikenParticleMaterial ShurikenParticleMaterial 类用于实现粒子材质。 Hierarchy Material ShurikenParticleMaterial Implements IClone Index Constructors constructor Properties _id destroyedImmediately lock name...

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

887. 写了个边缘光的自定义shader,有很多问题,帮忙看一下 [ 55%]

...tomMaterial.__super.call(this); this.setShaderName("CustomShader"); } Laya.class(CustomMaterial, "CustomMaterial", Laya.BaseMaterial); CustomMaterial.DIFFUSETEXTURE = 1; CustomMaterial.prototype.getDiffuseTexture = function () { return this._getTexture(CustomMaterial.DIFFUSETEXTURE); } CustomMateria...

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

888. 动画状态机 · LayaAir3.4 · 引擎文档 · LAYABOX [ 55%]

...,添加的代码如下: ... import Vector3 = Laya.Vector3; ... export class AnimationScript extends Laya.AnimatorStateScript { ... private model: Laya.Sprite3D; /**@internal */ setPlayScriptInfo(animator: Laya.Animator | Laya.Animator2D, layerindex: number, playstate: Laya.AnimatorState | Laya.A...

来源: Laya3.0_文档 发布时间: 20251010

889. laya.ui.Tree_API3.0 [ 55%]

...ted All Inherited Externals Only exported Menu Globals "laya/ui/Tree" Tree Class Tree Tree 控件使用户可以查看排列为可扩展树的层次结构数据。 example package { import laya.ui.Tree; import laya.utils.Browser; import laya.utils.Handler; public class Tree_Example { public function...

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

890. socket通讯返回数据 [ 55%]

...讯返回数据 下面是复制的代码,标“*”处为有问题。  class Game { private socket: Laya.Socket; private byte: Laya.Byte; constructor() { //初始化引擎 Laya.init(600, 400, Laya.WebGL); this.byte = new Laya.Byte(); //这里我们采用小端 this.byte.endian = Laya.Byte.LITTLE_...

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