大约有 251 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0075 秒)
...宽度的地板上面才添加道具 还记得前面我们讲Floor是怎么生成的吗? 每次移除屏幕外面我们都会创建一个新的Floor对象 如果游戏玩久了 可能就会很卡 造成对象太多 其实我想一想 跑出屏幕外面的地板是不是可以重复利用? ...
来源: Laya_社区 发布时间: 20160803
...r = 1 多重采样点个数。 Default value mipmap: boolean = false 是否生成mipmap。 Returns MulSampleRenderTexture Properties _generateMipmap _generateMipmap: boolean Inherited from RenderTextureCube._generateMipmap Defined in laya/d3/resource/RenderTexture.ts:129 _inPool _inPool: boolean = f...
来源: Laya3.0_api 发布时间: 20231102
...行进程和UI进程的通讯方式三、制作编辑器UI四、程序化生成界面4.1 常用方法4.2 示例五、自定义Inspector字段编辑界面六、自定义面板七、使用对话框八、扩展内置菜单九、创建菜单十、在场景视图中绘制形状以及交互式手柄十一...
来源: Laya3.0_文档 发布时间: 20250214
..., 0, 960, 96); //计算一下右边还剩下多少 用来判断什么时候生成新的floor //这里是通过游戏宽度 减去 固定 2个 32的宽度 再随机一个长度 这样 可以让地板时间点的出现 更加随机性 this.maxRight = 852 - 32 * 2 - 32 * parseInt(10 * Math.random()); /...
来源: Laya_社区 发布时间: 20160801
...光来源从SolidColor转化成球谐,并点击下面的GenerateLighing生成一个IBL的立方体贴图CubeMap,如图2-1-3-1所示: 图2-1-3-1 (1)AlbedoTexture漫反射贴图 为了设置物体表面材质的整体纹理,同样使用上面的墙体作为贴图,如图2-1-3-1-1与图2-1...
来源: Laya3.0_文档 发布时间: 20240910
...对了,查找很久才发现handler调用了recover,被对象池再次生成的对象引用覆盖了如: var a:Laya.Handler = Laya.Handler.create(null,testhandler,["a"]); console.log("a1:",a); a.recover(); console.log("a2:",a); var b:...
来源: Laya_社区 发布时间: 20161109
... Defined in laya/resource/Texture.ts:153 截取Texture的一部分区域,生成新的Texture,如果两个区域没有相交,则返回null。 Parameters texture: Texture 目标Texture。 x: number 相对于目标Texture的x位置。 y: number 相对于目标Texture的y位置。 width: number ...
来源: Laya3.0_api 发布时间: 20231115
...r.pos(...).scale(...); Sprite randRange(minNum:*, maxNum:*):int[static] 生成指定范围的随机数 AdvImage reCache():void在设置cacheAs的情况下,调用此方法会重新刷新缓存。Sprite removeChild(node:Node):Node 删除子节点。 Node removeChildAt(index:int):Node 根据子...
来源: Laya2.0_api 发布时间: 20190513
...ut: Ray): void Defined in laya/d3/core/Camera.ts:1302 计算从裁切空间生成的射线。 Parameters point: Vector2 裁切空间的位置。 out: Ray 输出射线。 Returns void off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?:...
来源: Laya3.0_api 发布时间: 20231115
...portPointToRay Defined in laya/d3/core/Camera.ts:1302 计算从裁切空间生成的射线。 Parameters point: Vector2 裁切空间的位置。 out: Ray 输出射线。 Returns void off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?:...
来源: Laya3.0_api 发布时间: 20231115