大约有 572 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0055 秒)
...CannonPhysicsCollider Class CannonPhysicsCollider PhysicsCollider 类用于创建物理碰撞器。 Hierarchy CannonPhysicsTriggerComponent CannonPhysicsCollider CannonRigidbody3D Index Constructors constructor Properties _extra _singleton canScaleShape owner runInEditor scriptPath Accessors awaked ...
来源: Laya3.0_api 发布时间: 20231102
...的状态。比如查询数据等。 GET请求的示例代码如下: //创建HttpRequest对象 const xhr = new Laya.HttpRequest(); //发送HTTP的GET请求,数据会附加在URL中,适用于无需发送大量数据的情况。 xhr.send('https://httpbin.org/get', null, 'get', 'text'); 2.1.3 POS...
来源: Laya3.0_文档 发布时间: 20251010
...Classpublic class ScriptInheritanceScript Component Object Script 类用于创建脚本的父类,该类为抽象类,不允许实例。 组件的生命周期 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By destroyed : Boolean[read-only] 获...
来源: Laya2.0_api 发布时间: 20190513
...机的天空渲染器 var skyRenderer:SkyRenderer = camera.skyRenderer; //创建天空盒的mesh skyRenderer.mesh = SkyBox.instance; //设置天空盒材质 skyRenderer.material = mat; })); ``` 来看下效果(图2)。 (图2) #### 3. 纹理加载 加载单个纹理使用Texture...
来源: Laya2.0_文档 发布时间: 20210715
...ded(){ var btn = new Laya.Button("res/a.png"); Laya.stage.addChild(btn); //创建隐藏的file并且把它和按钮对齐。达到位置一致,这里我们默认在0点位置 var file = Laya.Browser.document.createElement("input"); //设置file样式 file.style="filter:alpha(opacity=0);opacity:0;w...
来源: Laya2.0_文档 发布时间: 20210714
...那么我们就来修改下,看看怎么改变样式。 ```typescript //创建隐藏的file并且把它和按钮对齐。达到位置一致,这里我们默认在0点位置 var file:any = Laya.Browser.document.createElement("input"); //设置file样式 file.style="filter:alpha(opacity=0);opacity:...
来源: Laya2.0_文档 发布时间: 20210715
...跟我的应用场景不一样啊。 我不是通过代码从0加载然后创建骨骼对象, 我是直接在ui设计器中拖入*.sk文件生成的SkeletonPlayer节点, 然后运行时,获取那个节点产生的Skeleton进行后续操作。 看了我上传的项目文件吗? Laya_Aaron •...
来源: Laya_社区 发布时间: 20180622
...,然后插入laya引擎的downloader,之后下载就会被dcc接管 //创建DCC客户端,参数是DCC服务器地址 let dcc = new DCCClient('http://localhost:7788/' ); //设置这个地址下的资源加载走DCC模式 dcc.pathMapToDCC= 'http://localhost:8899/'; //通过DCC的根文件初始...
来源: Laya3.0_文档 发布时间: 20251010
...this, this.onComplete)); } onComplete(){ //创建场景 let scene = Laya.stage.addChild(new Laya.Scene3D()); //创建相机 let camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); //设置相机的名...
来源: Laya_社区 发布时间: 20190531
... Globals "laya/d3/core/light/Light" Light Class Light LightSprite 类用于创建灯光的父类。 Hierarchy Component Light SpotLightCom DirectionLightCom PointLightCom AreaLightCom Index Constructors constructor Properties _extra _singleton color owner runInEditor scriptPath Accessors awaked dest...
来源: Laya3.0_api 发布时间: 20231115