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

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

1451. 分享水波一个shader [ 47%]

...er = Laya.SubShader; import BaseTexture = Laya.BaseTexture; export default class Test1Material extends BaseMaterial { public readonly MAIN_TEX:number = Shader3D.propertyNameToID("u_MainTex"); public readonly NOISE_TEX:number = Shader3D.propertyNameToID("u_NoiseTex"); public readonly Time:number = Sh...

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

1452. laya.d3.core.render.command.CommandBuffer_API3.0 [ 47%]

...ted Menu Globals "laya/d3/core/render/command/CommandBuffer" CommandBuffer Class CommandBuffer CommandBuffer 类用于创建命令流。 Hierarchy CommandBuffer Index Constructors constructor Accessors casterShadow context name Methods _apply _applyOne addCustomCMD blitScreenQuad blitScreenQuadByMat...

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

1453. HttpRequest详解(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 47%]

...va package { import laya.events.Event; import laya.net.HttpRequest; public class LayaSample { public function LayaSample() { //初始化引擎 Laya.init(1136, 640); var xhr:HttpRequest = new HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler)...

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

1454. 2D方向光 · LayaAir3.4 · 引擎文档 · LAYABOX [ 47%]

...现一个简单的昼夜更替效果。 示例代码如下: const { regClass } = Laya; @regClass() export class DayNight extends Laya.Script { declare owner: Laya.Sprite; private lightComp: Laya.DirectionLight2D; private dayTime: number = 0; private dayDuration: number = 24; // 一个完整周期...

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

1455. Laya3D 中如何解决3D模型上添加文本的问题,类似Unity中的3DText [ 47%]

...:48 浏览: 1266 关注: 5 人 大大大懒猫 • 2018-09-10 10:39 export class ShopTitle extends Laya.Script{ public title: string; constructor(){ super(); } public _initialize(owner: Laya.Sprite3D): void { super._initialize(owner); var sprite3D = this.owner as Laya.MeshSprite3D; var sprite3DMat =...

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

1456. Unity插件与LAYAAIR加载的天空盒子BUG与修改方法 [ 47%]

...TextureCubeLtcLoaded=function(loader,ltcData){         if (loader._class.destroyed){             loader.endLoad();             }else {             var ltcBasePath=URL.getPath(loader.url);             var urls=[             Laya3D.fo...

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

1457. laya.resource.RenderTexture2D_API3.0 [ 47%]

...Only exported Menu Globals "laya/resource/RenderTexture2D" RenderTexture2D Class RenderTexture2D RenderTexture 类用于创建渲染目标。 Hierarchy BaseTexture RenderTexture2D Implements IRenderTarget Index Constructors constructor Properties _id _isCameraTarget _renderTarget depthStencilTexture...

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

1458. [LayaAirIDE3]咋么实现鼠标点击角色移动 [ 46%]

...确实难以判断 ZmySir • 2025-12-22 15:40 @LayaAir小牛:const { regClass, property } = Laya; @regClass() export default class iceMonster extends Laya.Script { declare owner: Laya.Sprite; /** 用于兜底的 Animator2D(可选) */ private _animator: Laya.Animator2D; /** 承载 .mc 的动画...

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

1459. 对游戏中各种控件字体样式使用“白鹭style”样式表 [ 46%]

...qianxiao * @Date: 2017/12/25 * @Time: 下午3:52 * @Desc: 字体样式 **/ class TextFormat implements ITextFormat { /** * 背景色 */ bgColor: string; /** * 是否加粗 */ bold: number; /** * 文本框背景色 */ borderColor: string; /** * 文本颜色 */ color: string; /** * 字体 */ font: str...

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

1460. LayaAir DebugPanel 调试工具(ActionScript-2D进阶篇(AS3)-调试相关) [ 46%]

...package { import laya.debug.DebugPanel; import laya.display.Sprite; public class Main { public function Main() { //初始化舞台 Laya.init(1334,750); //调用DebugPanel调试面板 Laya.enableDebugPanel(); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; var Img:Sprite = new Sprite(); //添...

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