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

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

2511. List 组件做的手风琴Demo [ 46%]

...   this.listArr[0].refresh()         }     /** * 创建BOX */ class Item extends Laya.Box{     public static WID:number =100;     public static HEI:number =30;     constructor(){         super()         this.size(Item.WID,Item.HEI);         var img1 =n...

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

2512. List翻页效果 [ 46%]

..."../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_社区 发布时间: 20171202

2513. 如何为灯光添加阴影(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 46%]

...API](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=3D&class=laya.d3.core.light.LightSprite)。 除此之外,还要需要在模型上设置投影属性。 **receiveShadow:**是否接受阴影,当模型此属性为true时,计算出的阴影会在此模型上显示出来。...

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

2514. 渲染优化原则(ActionScript-2D进阶篇(AS3)-性能优化) [ 46%]

...laya.display.Text; import laya.utils.Stat; import laya.webgl.WebGL; public class Test { private var text:Text; public function Test() { Laya.init(550,400,WebGL); Stat.show(); var textBox:Sprite =new Sprite(); for(var i:int=0;i ​ (图1) ​ 当我们对文字所在的容器设置为cacheAs之...

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

2515. List滚动条问题 [ 46%]

...ice = function(price) { this._goldButton.label = "RMB " + price; }; } Laya.class(MarketItem, "xgame.marketitem", _super); })(Laya.Box);list代码如下: var list = new Laya.List(); list.itemRender = xgame.marketitem; list.repeatX = 3; list.repeatY = 1; list.spaceX = 10; list.hScrollBarSkin = ""; /...

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

2516. 颜色滤镜 差值变化 [ 46%]

.../ module touch {     /**      * 颜色工具类      */ export class ColorTool { private _targetsValue: number = 16777215; private _targetsLastValue: number = null; private targets: Array<Laya.Sprite> = null; public static instance: ColorTool = null; private targetsFilter: Laya.Col...

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

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

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

2518. laya.resource.RenderTexture2D_API3.0 [ 46%]

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

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

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

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

2520. laya.d3.core.particleShuriKen.ShuriKenParticle3D [ 46%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames ShuriKenParticle3DProperties | Methods | Events Packagelaya.d3.core.particleShuriKenClasspublic class ShuriKenParticle3DInheritanceShuriKenParticle3D RenderableSprite3D Sprite3D Node EventDispatcher Object ShuriKenParti...

来源: Laya2.0_api 发布时间: 20190513