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

大约有 16 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0023 秒)

1. 鼠标交互-修正交互区域 [ 100%]

...ar deepSkyblueRect = new Sprite(); deepSkyblueRect.graphics.drawRect(0, 0, 100, 100, "#00BFFF"); //设置名称 deepSkyblueRect.name = "天蓝色矩形"; //设置宽高(要接收鼠标事件必须设置宽高,否则不会被命中) deepSkyblueRect.size(100, 100); deepSkyblueRect.pos(10, 10); L...

来源: Laya_示例 发布时间: 20240930

2. Mesh网格-自定义网格 [ 96%]

...ild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya....

来源: Laya_示例 发布时间: 20240930

3. 射线检测-射线检测 [ 95%]

...; //初始化照相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 1, 3)); camera.clearColor = null; Laya.loader.create(["../../res/threeDimen/skinModel/NvWu/NvWu-shenminvwu.lm", "../../res/threeDimen/skinModel/CunMinNan/CunMinNan-cunminn...

来源: Laya_示例 发布时间: 20240930

4. 滤镜-发光滤镜 [ 92%]

...() { //创建一个发光滤镜 var glowFilter = new GlowFilter("#ffff00", 10, 0, 0); //设置滤镜集合为发光滤镜 ape.filters = [glowFilter]; } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import GlowFilter = Laya.GlowFilter; import Texture = Laya.Texture; impor...

来源: Laya_示例 发布时间: 20240930

5. 高级应用-渲染纹理 [ 91%]

...ene/Arena/Arena.ls")); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(0, 0.5, 1)); camera.transform.rotate(new Laya.Vector3(-10, 0, 0), true, false); camera.addComponent(CameraMoveScript); var renderTargetCamera = scene.addChild(new Laya.Camer...

来源: Laya_示例 发布时间: 20240930

6. 射线检测-放置物体 [ 91%]

...; //初始化照相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.clearColor = null; //方向光 var directionLight = scene.addChild(new Laya.DirectionLigh...

来源: Laya_示例 发布时间: 20240930

7. 射线检测-点击行走 [ 88%]

...; //初始化照相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.clearColor = null; //方向光 var directionLight = scene.addChild(new Laya.DirectionLigh...

来源: Laya_示例 发布时间: 20240930

8. 高级应用-闪光 [ 86%]

...ild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(0, 6, 10)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); var glitter = scene.addChild(new Laya.Glitter()); var glitterTemplet = glitter.templet; var gl...

来源: Laya_示例 发布时间: 20240930

9. DOM元素-表单输入 [ 86%]

...2); Laya.stage.addChild(this.form); this.rowHeight = 30; this.rowSpacing = 10; var rowHeightDelta = this.rowSpacing + this.rowHeight; // 显示左侧标签 showLabel("邮箱", 0, rowHeightDelta * 0); showLabel("出生日期", 0, rowHeightDelta * 1); showLabel("密码", 0, rowHeightDelta * 2); // 显...

来源: Laya_示例 发布时间: 20240930

10. 音频-播放演示 [ 86%]

...aya.stage.bgColor = "#232628"; setup(); })(); function setup() { var gap = 10; //创建一个Sprite充当音效播放按钮 var soundButton = createButton("播放音效"); soundButton.x = (Laya.stage.width - soundButton.width * 2 + gap) / 2; soundButton.y = (Laya.stage.height - soundButton.height) /...

来源: Laya_示例 发布时间: 20240930