大约有 1,795 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0050 秒)
Laya_社区(852) Laya3.0_api(323) Laya2.0_api(248) laya_api(179) Laya2.0_文档(142) Laya3.0_文档(45) Laya2.0_示例(4) Laya_示例(2)
...ted constructor() { this.targets = new Array<Laya.Sprite>(); } /** * 实例 */ public static getInstance(): ColorTool { if (ColorTool.instance == null) { ColorTool.instance = new ColorTool(); } return ColorTool.instance; } /** * 添加颜色改变对象 * @param target */ public addColorTarg...
来源: Laya_社区 发布时间: 20180930
...设置一个Rectangle区域作为点击区域,或者设置一个HitArea实例作为点击区域,HitArea内可以设置可点击和不可点击区域。 如果不设置hitArea,则根据宽高形成的区域进行碰撞。 Sprite hitTestPrior : Boolean = false 指定鼠标事件检测是优先...
来源: laya_api 发布时间: 20170929
...ics/shape/SphereColliderShape.ts:22 创建一个新的 SphereColliderShape 实例。 Parameters Default value radius: number = 0.5 半径。 Returns SphereColliderShape Properties needsCustomCollisionCallback needsCustomCollisionCallback: boolean = false Inherited from CompoundColliderShape.needsCus...
来源: Laya3.0_api 发布时间: 20231115
...= document.getElementsByTagName('body').item(0); //创建脚本的dom对象实例 var myScript = document.createElement('script'); myScript.src = jspath; //指定脚本路径 myScript.type = "text/javascript"; //指定脚本类型 myScript.defer = defer;//true; //程序下载完后再解析和执行...
来源: Laya_社区 发布时间: 20180316
...PP的更新提示。 这些函数都属于conch.config类的函数,调用实例: if( window.conch ) { window.conch.config.getRuntimeVersion(); } Tips 1、conch只能LayaNative环境下调用,在网页版本中是没有conch定义的,所以需要判断一下是否存在。 7. 屏蔽项目中...
来源: Laya3.0_文档 发布时间: 20251010
.../resource/HTMLCanvas.ts:59 根据指定的类型,创建一个 HTMLCanvas 实例。 Parameters Default value createCanvas: boolean = false Returns HTMLCanvas Properties _id _id: number = 0 Inherited from Resource._id Defined in laya/resource/Resource.ts:97 destroyedImmediately destroyedImmediately:...
来源: Laya3.0_api 发布时间: 20231115
...], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 Laya.stage.bgColor="#353535"; sp1=createSprite(50,50);//创建方块1 sp2=createSprite(250,50);//创建方块2 sp3=createSprite(450,50);//创建方块3 addTime(timeLine1,sp1,200);//sp1添加缓动,从50到200...
来源: Laya_社区 发布时间: 20161207
...个对象同时缓动的时候过一段时间会不同步 我创建了7个实例 然后在他们内部封装了动画方法然后同步执行 private function loadComplete2():void { Laya.stage.addChild(view); for(var i:int=1;i<=7;i++) { var tempItem:ItemUi=new ItemUi() Laya.stage.addChild(tempI...
来源: Laya_社区 发布时间: 20180524
...ape/CannonSphereColliderShape.ts:16 创建一个新的 SphereColliderShape 实例。 Parameters Default value radius: number = 0.5 半径。 Returns CannonSphereColliderShape Properties needsCustomCollisionCallback needsCustomCollisionCallback: boolean = false Inherited from CannonColliderShape.need...
来源: Laya3.0_api 发布时间: 20231102
...physics/shape/MeshColliderShape.ts:47 创建一个新的 MeshColliderShape 实例。 Returns MeshColliderShape Properties needsCustomCollisionCallback needsCustomCollisionCallback: boolean = false Inherited from CompoundColliderShape.needsCustomCollisionCallback Defined in laya/d3/physics/shape/Coll...
来源: Laya3.0_api 发布时间: 20231115