大约有 82 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0026 秒)
反射实例中的属性 根据API中Laya.ClassUtils.类中的方法,我先注册了,在创建了实例!但我如何获取实例中对象的属性 // 程序入口 class GameMain { constructor() { Laya.init(600, 400); Laya.ClassUtils.regClass("sp", Reflect); Laya.ClassUtils.getInstance('sp').p...
来源: Laya_社区 发布时间: 20181029
在微信小游戏下window 和 浏览器下的window问题 怎么使用反射 找到自己想要实例的类 我现在知道浏览器下的window 和 微信小游戏下的window是不同? 那再浏览器下的window 。我可以看到很多Class view 的对象 和微信小游戏下的window 完...
来源: Laya_社区 发布时间: 20190712
...对象啊!!!!感谢真不想在找typescript了扒嗒了半天,反射竟然没有看懂,感谢了!!! 问个和引擎编辑器无关的问题,问问怎么通过一个类名(字符串)创建一个对象啊!!!!感谢真不想在找typescript了扒嗒了半天,反射竟然没...
来源: Laya_社区 发布时间: 20180122
...nProbeManager Class ReflectionProbeManager ReflectionProbeManager 类用于反射探针管理 miner Hierarchy ReflectionProbeManager Index Constructors constructor Accessors sceneReflectionCubeHDRParam sceneReflectionProbe Methods _updateMotionObjects addMotionObject clearMotionObjects destroy updat...
来源: Laya3.0_api 发布时间: 20231102
...nProbeManager Class ReflectionProbeManager ReflectionProbeManager 类用于反射探针管理 Hierarchy ReflectionProbeManager Implements IVolumeManager Index Constructors constructor Accessors sceneReflectionProbe Methods _updateRenderObject Constructors constructor new ReflectionProbeManager(): Re...
来源: Laya3.0_api 发布时间: 20231115
...sName:String, classDef:*):void[static] 注册 Class 映射,方便在class反射时获取。 ClassUtils regShortClassName(classes:Array):void[static] 根据类名短名字注册类,比如传入[Sprite],功能同regClass("Sprite",Sprite); ClassUtilsMethod DetailcreateByJson()method public sta...
来源: Laya2.0_api 发布时间: 20190513
在Native端IOS下提示反射找不到方法? 参考NativePlayer二次开发的文档,实现JS调用OC内class播放视频,(使用最新NativePlayer SDK 0.9.10)报错提示 ------------ className = JSProxy layabox[419:23466] 1 [-1] [1] [JSProxy] [playVideo] [["video/cg.mp4"]] layabox[419...
来源: Laya_社区 发布时间: 20170919
...robe" ReflectionProbe Class ReflectionProbe ReflectionProbe 类用于实现反射探针组件 miner Hierarchy Volume ReflectionProbe Index Constructors constructor Properties _extra _isScene _singleton _updateMark owner runInEditor scriptPath TEMPVECTOR3 defaultTextureHDRDecodeValues Accessors ambie...
来源: Laya3.0_api 发布时间: 20231115
...aya.Vector3(0.6, 0, 0); var material = new Laya.BlinnPhongMaterial(); //漫反射贴图 material.albedoTexture = Laya.Texture2D.load("../../res/threeDimen/texture/earth.png"); earth2.meshRender.material = material; Laya.timer.frameLoop(1, this, function () { earth1.transform.rotate(this.rotation, fa...
来源: Laya_示例 发布时间: 20260106
...yCube.ltc"); //实例PBR材质 var mat = new Laya.PBRStandardMaterial(); //反射贴图 mat.albedoTexture = Laya.Texture2D.load('../../res/threeDimen/scene/PBRMaterialScene/Assets/PBR Barrel/Materials/Textures/Barrel_AlbedoTransparency.png'); //法线贴图 mat.normalTexture = Laya.Texture2D.load('....
来源: Laya_示例 发布时间: 20260106