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

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

181. 渲染优化原则(TypeScript-2D进阶篇(TS)-性能优化) [ 55%]

...,本例为10000): ```typescript class Test { private text:Laya.Text; constructor() { Laya.init(550,400,Laya.WebGL); Laya.Stat.show(); var textBox=new Laya.Sprite(); for(var i=0;i (图1) 当我们对文字所在的容器设置为cacheAs之后,如下面的例子所示,性能获得较大的...

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

182. laya.ui.Dialog_API3.0 [ 55%]

...aya.utils.Handler; class Dialog_Example { private dialog: Dialog_Instance; constructor() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/btn_close.png", Handler.create(this, this.onLoadComplete));//加...

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

183. laya.ui.Slider_API3.0 [ 55%]

...der see laya.ui.VSlider Hierarchy UIComponent Slider HSlider VSlider Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize changeHandler hitTestPrior isVertical mouseThrough name showLabel tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInH...

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

184. 插件开发说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 55%]

...egClass() export class DemoPreviewPlugin extends IEditorEnv.AssetPreview { constructor() { super(); this.sprite.graphics.drawCircle(100, 100, 50, "#ffff00"); this.sprite.size(100, 100); } async setAsset(asset: IEditorEnv.IAssetInfo): Promise<any> { this.renderTarget = this.sprite; } } 显示...

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

185. laya.d3.core.material.unlit.UnlitTestMaterial_API3.0 [ 55%]

...tTestMaterial Hierarchy Material UnlitTestMaterial Implements IClone Index Constructors constructor Properties destoryedImmediately lock name renderQueue url uuid ALPHATESTVALUE DEBUG RENDERQUEUE_ALPHATEST RENDERQUEUE_OPAQUE RENDERQUEUE_TRANSPARENT SHADERDEFINE_ADDTIVEFOG SHADERDEFINE_ALPHATEST SHAD...

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

186. 刚刚接触2天layaair,有几个问题请教。 [ 55%]

...完全和教程不同 import GameConfig from "./GameConfig"; class Main { constructor() { //根据IDE设置初始化引擎 if (window["Laya3D"]) Laya3D.init(GameConfig.width, GameConfig.height); else Laya.init(GameConfig.width, GameConfig.height, Laya["WebGL"]); Laya["Physics"] && Laya["Phys...

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

187. laya.ui.Radio_API3.0 [ 55%]

...。 see laya.ui.RadioGroup Hierarchy Button Radio Implements ISelect Index Constructors constructor Properties _extra _graphics _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag toggle drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anc...

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

188. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 54%]

...TS项目,代码如下: ```typescript // 程序入口 class GameMain{ constructor() { //初始化引擎 Laya.init(1136,640); var sp = new Laya.Sprite(); var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,this.completeHandler); xhr.once(Laya.Event.ERROR,this,this.errorHandler); xh...

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

189. layaNative测试运行原生app时,laya3D解析动画处报错 [ 54%]

...oader.js关于该类的定义如下 class conchFloatArrayKeyframe {     constructor() {         this._nativeObj = new _conchFloatArrayKeyframe();     }     set time(value) {         this._nativeObj.setTime(value);     }     get time() {         return this._native...

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

190. 仿照laya官方demo做了一个视频播放的UI,为啥在微信里不能用? [ 54%]

... by the LayaAirIDE*/ module view { export class Guide extends ui.GuideUI { constructor() { super(); // 创建Video元素 let videoElmt: any = Laya.Browser.createElement("video"); Laya.Browser.document.body.appendChild(videoElmt); // 设置Video元素地样式和属性 videoElmt.style.zInddex = Laya....

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