大约有 1,232 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0048 秒)
Laya_社区(702) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(75) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
... 实例。 PostProcess _init(camera:Camera, command:CommandBuffer):void private PostProcess addEffect(effect:PostProcessEffect):void 添加后期处理效果。 PostProcess removeEffect(effect:PostProcessEffect):void 移除后期处理效果。 PostProcessConstructor DetailPostProcess()Cons...
来源: Laya2.0_api 发布时间: 20190513
...rty } = Laya; @regClass() export class LightOccluder extends Laya.Script { private spotLight: Laya.Sprite = new Laya.Sprite(); private background: Laya.Sprite = new Laya.Sprite(); private lightOccluder: Laya.Sprite = new Laya.Sprite(); private backgroundTexture: string = "resources/bg2.png"; //组...
来源: Laya3.0_文档 发布时间: 20251010
...看,从图上看到的信息不全面 li970704928 • 2017-12-13 19:03 private var maskArea:Sprite; private var sp:Sprite; private var guideContainer:Sprite; public function openPoison():void { mapData = mapSession.mapData; guideContainer=new Sprite(); guideContainer.cacheAs = "bitmap"; ...
来源: Laya_社区 发布时间: 20171213
...name=Shader_Terrain)): > 新版本注册宏定义 ```javascript /** * @private */ public static function __init__() { SHADERDEFINE_DETAIL_NUM1 = Laya.Shader3D.getDefineByName("CUSTOM_DETAIL_NUM1"); SHADERDEFINE_DETAIL_NUM2 = Laya.Shader3D.getDefineByName("CUSTOM_DETAIL_NUM2"); SHADERDEFINE_DETAI...
来源: Laya2.0_文档 发布时间: 20210714
...LayaAir引擎 Animation 使用疑问 清理问题 内存没有发生变化 private onBtnClick(): void { this.body = new Laya.Animation(); this.body.y = -100; this.body.interval = 50; this.addChild(this.body); this.body.play(0, true, "hero_fly"); } private body: Laya.Animation; private onBtn2Click():...
来源: Laya_社区 发布时间: 20170615
...ationClip onAsynLoaded(url:String, data:*, params:Array):void[override] private AnimationClipProtected Methods MethodDefined By detoryResource():void[override] 销毁资源,override it,同时修改memorySize属性。AnimationClipProperty Detailisloopingpropertypublic var islooping:Boolean...
来源: laya_api 发布时间: 20170929
移除ANI private Getclick(e):void{ ani.loadAnimation('./quan.ani');//加载IDE制作的动画 ani.x=e.stageX; ani.y=e.stageY Laya.stage.addChild(ani);//显示动画 } 我在场景中创建了 点击按钮 创建了很多 的ANI 动...
来源: Laya_社区 发布时间: 20191224
... { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); this.stage.scaleMode = StageScaleMode.NO_SCALE; this.stage.align = StageAlign.TOP_LEFT; IFlash.setSize(1000, 600); //2D项目中设...
来源: Laya_社区 发布时间: 20151123
...property } = Laya; @regClass() export class UI_Input extends Laya.Script { private SPACING: number = 100; private Y_OFFSET: number = 50; private skins: any[]; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwa...
来源: Laya3.0_文档 发布时间: 20251010
..., _direction); spotLight.direction = _direction; }); class SpotLightDemo { private scene: Laya.Scene; private _quaternion: Laya.Quaternion; private _position: Laya.Vector3; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREE...
来源: Laya_示例 发布时间: 20251209