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

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

951. laya.d3.core.GlitterRender [ 48%]

...:int, buffer:Float32Array):void 设置Buffer。 BaseRender _setShaderValueColor(shaderIndex:int, color:*):void 设置颜色。 BaseRender _setShaderValueInt(shaderIndex:int, i:int):void 设置整型。 BaseRender _setShaderValueNumber(shaderIndex:int, number:Number):void 设置浮点。 BaseRende...

来源: laya_api 发布时间: 20170929

952. Tree属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 48%]

...treeItem", "width": "150", "left": "33", "height": "22", "name": "label", "color": "#ffff00", "right": "0", "x": "33"}}, {"type": "Clip", "props": {"x": "0", "name": "arrow", "y": "5", "skin": "ui/clip_tree_arrow.png", "clipY": "2"}}], "type": "Box", "props": {"name": "render", "right": "0", "left":...

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

953. 资源加载(TypeScript-3D基础(TS)-LayaAir3D之资源加载) [ 48%]

...directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.transform.rotate(new Laya.Vector3( -3.14 / 3, 0, 0)); })); ``` 查看加载后的效果(图1)。 ![](img/1.png)(图片1) #### 2. 材质加载 在单个材质进行加载...

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

954. Sprite3D添加组件或脚本(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 48%]

...directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); //加载精灵 var monkey = Laya.Loader.getRes("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh"); //精灵添加脚本 monkey.addComponent(MonkeyScript); scene.addChild(monkey); } }...

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

955. laya.d3.core.material.WaterPrimaryMaterial [ 48%]

...Value : Number 获取透明测试模式裁剪值。 BaseMaterial  horizonColor : Vector4 获取地平线颜色。 WaterPrimaryMaterial  mainTexture : BaseTexture 获取主贴图。 WaterPrimaryMaterial  normalTexture : BaseTexture 获取法线贴图。 WaterPrimaryMaterial renderQueue : int ...

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

956. 关于要自定shader的同学 [ 48%]

..., Laya.WebGLContext.FLOAT, false, _vlen, 2 * Laya.CONST3D2D.BYTES_PE] this.color = [4, Laya.WebGLContext.FLOAT, false, _vlen, 4 * Laya.CONST3D2D.BYTES_PE] } }// 关于修改shader内部值的操作 假如有uniform float water_iTime setShaderValue (sprite) { // 在这里直接对 sprite.shaderValue....

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

957. 图集打包与动画 [ 48%]

...); Normal是默认动画,就没有问题。 代码如下: let url=this.color+'Emoji.ani'; this.ani=new Laya.Animation(); this.ani.loadAnimation(url); this.addChild(this.ani); this.ani.play(0,true,'XiuXian'); 3、顺便确认一下:Laya中的事件系统,鼠标事件是冒泡的,其他事...

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

958. laya3d导入模型动画,添加光照之后,模型全黑。 [ 48%]

...t = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.color = new Vector3(1, 1, 1); directionLight.direction = new Vector3(0, -1.0, -1.0); 如果还是达不到你想要的效果的话就尝试更改一下你的材质 材质与灯光的详细介绍连接 https://ldc.layabox.com/...

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

959. Tree属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 47%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; var res: Array = [ "res/ui/vscroll.png", "res/ui/vscroll$bar.png", "res/ui/vscroll$down.png", "res/ui/vscroll$up.png", "res/ui/tree/clip_selectBox.png", "res/ui/tree/clip_tree_folder.png", "res/ui/tree/clip...

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

960. laya.ui.TextInput_API3.0 [ 47%]

...a.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/input.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { var textInput:TextInput = new T...

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