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

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

881. 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

882. 请问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

883. 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

884. 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

885. 写了个边缘光的自定义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

886. 动画状态机 · LayaAir3.3 · 引擎文档 · 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

887. 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

888. rigidBody.applyForce 物体不会移动 [ 55%]

...式去移动,但是角色在地上一动也不动的 ​ export default class GameUI { //宣告場景 private scene: Laya.Scene3D; private camera: Laya.Camera; private directionlight: Laya.DirectionLight; private character: Laya.Sprite3D; private monster_character: Laya.Sprite3D; private translate...

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

889. 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

890. 求问:西文字体下半部分被遮挡,怎么处理? [ 55%]

...请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: class TextRender getFontSizeInfo 函数,最后部分    var xoff:int = Math.max( orix - pixelBBX[0], 0);    var yoff:int = Math.max( oriy - pixelBBX[1], 0);    var bbxw:int = pixelBBX[2] - pixelBBX[0];    var bbxh:int ...

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