大约有 1,182 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0044 秒)
Laya3.0_api(429) Laya_社区(250) Laya2.0_api(228) laya_api(183) Laya2.0_文档(54) Laya3.0_文档(26) Laya2.0_示例(6) Laya_示例(6)
...地图的。 export default class MapSprite extends Laya.Image{ isShow:boolean = false; name:string = ""; constructor() { super(); } loadImageAndPos(name:string,posX:number,posY:number):void { this.name = name; this.anchorX = 0; this.anchorY = 0; this.x = posX; //这里是256*整数倍的叠加...
来源: Laya_社区 发布时间: 20190315
...个回复 Laya_Aaron 赞同来自: 1987c private static var _useAudioMusic:Boolean = true; /** * <code>SoundManager</code> 是一个声音管理类。提供了对背景音乐、音效的播放控制方法。 * 引擎默认有两套声音方案:WebAudio和H5Audio ...
来源: Laya_社区 发布时间: 20190919
...hitTest(this.down)) return; this.onMouseUp(false); } private onMouseUp(up: boolean) { if (!this.down) return; this.scaleBig(this.down); if (up) { if (this.down === this.racingB) { // do click } else if (this.down === this.marketB) { // do click } else if (this.down === this.breedB) { // do click } e...
来源: Laya_社区 发布时间: 20180731
...ype]); } public static function addDark(target:laya.display.Sprite, isDark:Boolean = true):void { if (isDark) { // laya.ui.UIUtils.addFilter(target, DARK); target.filters=[ new ColorFilter([0.7, 0, 0, 0, 0, 0, 0.7, 0, 0, 0, 0, 0, 0.7, 0, 0, 0, 0, 0, 1, 0])]; } else { // laya.ui.UIUtils.clearFilter(t...
来源: Laya_社区 发布时间: 20160802
...); } } /**播放动画 */ public playAni(aniName: PERSON_ANI, islooping: boolean = true): void { console.log("播放:" + aniName); this.ani.getControllerLayer().getAnimatorState(aniName).clip.islooping = islooping; this.ani.play(aniName); } ////迷茫,这这样写,就是有一个 不循环,...
来源: Laya_社区 发布时间: 20190802
....WID*0.5; private var endTime:int; private var cdTime:int; public var isCd:Boolean = false; public function CdSprite() { super(); this.scrollRect = rect; this.alpha = 0.85; } public function setSize(bian:int):void{ r = bian / Math.SQRT2; rect = new Rectangle(0,0,bian,bian); this.scrollRect = rect; p...
来源: Laya_社区 发布时间: 20171124
...hape Properties needsCustomCollisionCallback needsCustomCollisionCallback: boolean = false Inherited from CompoundColliderShape.needsCustomCollisionCallback Defined in laya/d3/physics/shape/ColliderShape.ts:115 Static SHAPEORIENTATION_UPX SHAPEORIENTATION_UPX: number = 0 Inherited from CompoundColli...
来源: Laya3.0_api 发布时间: 20231115
...erState depthTest : int深度测试函数。RenderState depthWrite : Boolean是否深度写入。RenderState dstBlend : int目标混合参数,在blend为BLEND_ENABLE_ALL时生效。RenderState dstBlendAlpha : intAlpha目标混合参数,在blend为BLEND_ENABLE_SEPERATE时生效。RenderSt...
来源: Laya2.0_api 发布时间: 20190513
...pe, tips:"布尔类型示例", type:Bool, default:true}*/ public boolType: boolean = true; /** @prop {name:optionType, tips:"", type:Option, option:"aaa,bbb,true", default:"bbb"}*/ public optionType:string = "bbb"; //EditOption 貌似不能设置默认值 /** @prop {name:editOptionType, tips:"", typ...
来源: Laya_社区 发布时间: 20181215
...stObject: any 克隆源。 Returns void equals equals(b: ConchQuaternion): boolean Defined in laya/d3/math/Native/ConchQuaternion.ts:655 Parameters b: ConchQuaternion Returns boolean fromArray fromArray(array: any[], offset?: number): void Defined in laya/d3/math/Native/ConchQuaternion.ts:621 从Arr...
来源: Laya3.0_api 发布时间: 20231102