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

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

1001. laya.html.dom.HTMLDivElement_API3.0 [ 51%]

...round-color:#ff0000; 背景颜色 border-color:#ff0000; 边框颜色 width:100px; 对象宽度 height:100px; 对象高度 示例用法: var div:HTMLDivElement=new HTMLDivElement(); div.innerHTML = "adivspanspan2p"; Hierarchy Sprite HTMLDivElement HTMLIframeElement Index Constructors constructor Pr...

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

1002. 正交摄像机裁剪问题 [ 51%]

... this, function(){ sp1.transform.localPosition = new Laya.Vector3(-150, 1, 100); var scale = 1; var v3 = sp1.transform.localScale; v3.x = scale; v3.y = scale; v3.z = scale; sp1.transform.localScale = v3; }) 附件 : --> test_3d.zip 2017-05-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

1003. Laya 3.0 在场景里拖动报move nan 拖动的物体不见了,只能在属性哪里改变xyz [ 50%]

...自: 你这个deom怎么运行报错呢? [Game] Error loading res://a7daa100-5ced-4cd1-820d-82ed9838d4cf: Error: unknown runtime '7bad1742-6eed-4d8d-81c0-501dc5bf03d6',TypeError: cls is not a constructor     [Game] Uncaught (in promise) TypeError: Cannot read properties of undefined (reading '_i...

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

1004. IDE创建3D示例项目(TypeScript-3D基础(TS)-快速开始一个LayaAir3D项目) [ 50%]

...相机 var camera: Laya.Camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); //添加方向光 var directionLight: Laya.DirectionLight = scene.addChild(new Lay...

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

1005. 分享一个Graphics画圆角矩形的封装 [ 50%]

...后就可以使用了,如:mysprite.graphics.drawRoundrect(0, 0, 200, 100, 30, '#f00'); 2021-01-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复被折叠 要回复问题请先...

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

1006. HTML文本 · LayaAir3.0文档 · LAYABOX [ 50%]

...d-color:#ff0000; 背景颜色 * border-color:#ff0000; 边框颜色 * width:100px; 对象宽度 * height:100px; 对象高度 * * 示例用法: * var div:HTMLDivElement=new HTMLDivElement(); * div.innerHTML = "<link type='text/css' href='html/test.css'/><a href='alink'>a</a><div...

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

1007. LAYA的AS3项目碰见个问题,求解 [ 50%]

...myTexts.as继承之,为通用VIEW。 myTextsUI: <View sceneWidth="100" sceneHeight="20" sceneColor="#000000" editorInfo="compId=1">    <Text y="0" x="0" var="txts" text="text" fontSize="12" editorInfo="compId=2"/> </View>   mytexts.as: public class myTexts extends myTextsUI ...

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

1008. 动态阴影被切割了?为啥没有显示完成的阴影 [ 50%]

...添加照相机 var camera = (scene.addChild(new Laya.Camera()));//0, 0.3, 100 camera.transform.translate(new Laya.Vector3(3, 4, 3)); camera.transform.rotate(new Laya.Vector3(-30, 45, 0), true, false); camera.clearColor = null; camera.orthographic = false; //添加方向光 var directionLight = scen...

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

1009. PBR标准材质实时阴影渲染问题 [ 50%]

...ame('Main Camera') as Laya.Camera; // var camera = new Laya.Camera(0, 0.1, 100); // scene_360.addChild(camera); camera.transform.rotationEuler = new Laya.Vector3(-32, -75, 0); camera.transform.position = new Laya.Vector3(-8.2, 5.3, 2.2); var modelViewer = camera.addComponent(ModelViewer); modelViewe...

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

1010. laya.events.Keyboard [ 50%]

... 3 的键控代码值 (99) 关联的常数。Keyboard  NUMPAD_4 : int = 100[static] 与数字键盘上的数字 4 的键控代码值 (100) 关联的常数。Keyboard  NUMPAD_5 : int = 101[static] 与数字键盘上的数字 5 的键控代码值 (101) 关联的常数。Keyboard  NUMPAD_6 : int ...

来源: laya_api 发布时间: 20170929