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

大约有 291 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0045 秒)

51. laya.device.motion.Gyroscope [ 81%]

...class GyroscopeInheritanceGyroscope EventDispatcher Object 使用Gyroscope.instance获取唯一的Gyroscope引用,请勿调用构造函数。 listen()的回调处理器接受两个参数: function onOrientationChange(absolute:Boolean, info:RotationInfo):void absolute: 指示设备是否可以提...

来源: laya_api 发布时间: 20170929

52. Laya.Pool用法 [ 80%]

...t(ProtoPool.PROTO_STRING_VALUE);         }         private static _instance: ProtoPool;         static get instance(): ProtoPool {             if (this._instance == null) {                 this._instance = new ProtoPool();             }             return this._...

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

53. laya.device.motion.Gyroscope [ 80%]

...class GyroscopeInheritanceGyroscope EventDispatcher Object 使用Gyroscope.instance获取唯一的Gyroscope引用,请勿调用构造函数。 listen()的回调处理器接受两个参数: function onOrientationChange(absolute:Boolean, info:RotationInfo):void absolute: 指示设备是否可以提...

来源: Laya2.0_api 发布时间: 20190513

54. Cannot read property 'rayCast' of undefined [ 80%]

...ate(this.rotation, false); } mouseDown(){ this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.mouseY; //产生射线 this.camera.viewportPointToRay(this.point, this.ray); var out = new Laya.CannonHitResult(); this.scene.cannonPhysicsSimulation.rayCast(this.ray...

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

55. shader预编译的bug [ 80%]

...E"],"passIndex":0,"subShaderIndex":0},{"defineNames":["RECEIVESHADOW","GPU_INSTANCE","DIRECTIONLIGHT","UV","ALBEDOTEXTURE"],"passIndex":0,"subShaderIndex":0},{"defineNames":["RECEIVESHADOW","GPU_INSTANCE","DIRECTIONLIGHT","UV","ALBEDOTEXTURE","TRANSPARENTBLEND"],"passIndex":0,"subShaderIndex":0},{"d...

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

56. laya.device.Shake_API3.0 [ 80%]

... Hierarchy EventDispatcher Shake Index Constructors constructor Accessors instance Methods event hasListener off offAll offAllCaller on once start stop Constructors constructor new Shake(): Shake Defined in laya/device/Shake.ts:23 Returns Shake Accessors Static instance get instance(): Shake Defined...

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

57. laya.d3.resource.models.SkyDome_API3.0 [ 79%]

...ment SkyDome Index Constructors constructor Properties _geometryElementOBj instance Accessors bufferState destroyed drawType indexFormat instanceCount mode slices stacks Methods _getType clearRenderParams destroy setDrawArrayParams setDrawElemenParams Constructors constructor new SkyDome(stacks?: nu...

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

58. autoDestroyAtRemoved不管为啥值 ,关闭以后,再添加到场景,会重复执行构造函数 [ 79%]

...时候 都是新建了一个scene。可以把scene renderType属性改为instance, 或者将scene保存下来 使用时添加到舞台 2021-10-13 0 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Nothing 相关问题 sprite旋转以后,...

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

59. 执行回调函数时报is not a function [ 79%]

...办法。//Main.as private function loadRoles():void {     SocketProxy.instance.setRoleCall(getRolesBack); } protected function getRolesBack(data:ByteArray):void {     var len:int=data.readShort();     if (len == 0)     { //没有角色...则开始创建         trace("#没有角...

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

60. laya.device.motion.Accelerator [ 79%]

...class AcceleratorInheritanceAccelerator EventDispatcher Object Accelerator.instance获取唯一的Accelerator引用,请勿调用构造函数。 listen()的回调处理器接受四个参数: acceleration: 表示用户给予设备的加速度。 accelerationIncludingGravity: 设备受到的总加...

来源: laya_api 发布时间: 20170929