大约有 854 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0055 秒)
Laya_社区(263) Laya3.0_api(263) Laya2.0_api(142) laya_api(119) Laya3.0_文档(34) Laya2.0_文档(28) Laya_示例(3) Laya2.0_示例(2)
Cannot read property 'rayCast' of undefined export default class indexscene extends Laya.Script { constructor(){ super(); this.rotation = new Laya.Vector3(0, 0.01, 0); this.point = new Laya.Vector2(); this.ray = new Laya.Ray(new Laya.Vector3(),new Laya.Vector3()); //1.开启第四个参数 let conf...
来源: Laya_社区 发布时间: 20200903
... case 7:name1 = "stand3";break; default:break; } Animation.createFrames(urls1,name1); } for (var dir:int = 0 ; dir < 8; dir ++) { ...
来源: Laya_社区 发布时间: 20170921
.../ShurikenParticleSystem.ts:891 Parameters render: ShurikenParticleRenderer Default value meshTopology: MeshTopology = MeshTopology.Triangles Default value drawType: DrawType = DrawType.DrawElement Returns ShurikenParticleSystem Properties _geometryElementOBj _geometryElementOBj: IRenderGeometryEleme...
来源: Laya3.0_api 发布时间: 20231115
...rt Const from "../Const"; import UIMain from "../ui/Game/UIMain"; export default class GameWnd extends BaseWin { public view: UIMain; /** 角色 */ private character: Laya.Sprite /** 角色刚体*/ private rig: Laya.RigidBody /** 医疗包*/ private addhp:...
来源: Laya_社区 发布时间: 20221207
...自CustomScene。 MyScene.tsimport { ui } from "../ui/layaMaxUI"; export default class MyScene extends ui.CustomSceneUI{ constructor(){ super(); console.log(this.txt_hello.text); } } 设置CustomScene的runtime为刚刚创建的MyScene类,并创建一个var为txt_hello的文本,用来测试MySce...
来源: Laya_社区 发布时间: 20200827
...,代码如下: const { regClass, property } = Laya; @regClass() export default class CameraControll extends Laya.Script { @property( { type: Laya.Sprite3D } ) public target: Laya.Sprite3D; private camera: Laya.Camera; public distanceUp: number = 0.5;//相机与目标的竖直高度参数 public ...
来源: Laya3.0_文档 发布时间: 20251010
...ddChild(new Laya.Scene()); //var env:String = 'inthegarden'; var env = 'sp_default'; //var env = 'AtticRoom'; //var env = 'overcloud'; var envinfo = '../../res/threeDimen/env/' + env + '/envinfo.json'; Laya.loader.load(envinfo, Laya.Handler.create(this, onEnvDescLoaded, [envinfo, '../../res/threeDim...
来源: Laya_示例 发布时间: 20251209
...a.HtmlVideo播放视频 * @ author:xs * @ data: 2024-03-05 16:20 */ export default class VideoDom { htmlvideo:Laya.HtmlVideo; constructor() { Laya.stage.on(Laya.Event.CLICK,this,this.onClick); } onClick(){ this.initVideo(); } initVideo() { this.htmlvideo = new Laya.HtmlVideo(); this.htmlvideo.setSou...
来源: Laya_社区 发布时间: 20240305
...据实例化组件。 Parameters uiView:Object — UI数据。 comp:* (default = null) — 组件本体,如果为空,会新创建一个。 view:View (default = null) — 组件所在的视图实例,用来注册var全局变量,如果值为空则不注册。 Returns* — 一个 Component ...
来源: laya_api 发布时间: 20170929
...dialog:Dialog — 需要关闭的对象框 Dialog 实例。 type:String (default = null) — 关闭的类型,默认为空 closeAll()method public function closeAll():void 关闭所有的对话框。 closeByGroup()method public function closeByGroup(group:String):Array 根据组关闭所有...
来源: laya_api 发布时间: 20170929