大约有 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)
...xueying 赞同来自: ohkei 目前只有以下的滤镜和混合模式 /**@private 模糊滤镜。*/ public static const BLUR:int = 0x10; /**@private 颜色滤镜。*/ public static const COLOR:int = 0x20; /**@private 发光滤镜。*/ public static const GLOW:int = 0x08; public static const NAMES:A...
来源: Laya_社区 发布时间: 20170303
...oblin例子,替换的图片全在atlas里// 程序入口 class GameMain{ private m_skeleton : Laya.Skeleton; private m_templet : Laya.Templet; constructor() { Laya.init(1334,750,Laya.WebGL); this.m_templet = new Laya.Templet(); this.m_templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this...
来源: Laya_社区 发布时间: 20180126
...xtends Laya.Script { declare owner: Laya.Sprite3D; @property(Laya.Scene3D) private scene: Laya.Scene3D; private videoPlane: Laya.Sprite3D; private videoTexture = new Laya.VideoTexture(); onAwake(): void { //获取场景中要添加视频纹理的3D节点 this.videoPlane = this.scene.getChildByName("...
来源: Laya3.0_文档 发布时间: 20251010
Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 private _initView():void { if(this._objectInfo.templateInfo.type == "hole") { this._body = new Sprite(); this._body.graphics.drawCircle(0, 0, this._objectInfo.templateInfo.width, "#ff0000"); this._body.width = this._objectInfo....
来源: Laya_社区 发布时间: 20180308
... /** * 颜色工具类 */ export class ColorTool { private _targetsValue: number = 16777215; private _targetsLastValue: number = null; private targets: Array<Laya.Sprite> = null; public static instance: ColorTool = null; private targetsFilter: Laya.ColorFilter = null; pr...
来源: Laya_社区 发布时间: 20180930
...出现颤抖现象 this.loadHp(); Laya.timer.frameLoop(1, this, this.aaa); private bb:number = 6; private playerHB:logic.UI.role.PlayerHealthBar; private loadHp():void { this.playerHB = new logic.UI.role.PlayerHealthBar(); this.playerHB.pivotX = this.playerHB.width / 2; this.playerHB.pivotY = this.p...
来源: Laya_社区 发布时间: 20180102
...乱 templet: Laya.SpineTemplet; skeleton: Laya.SpineSkeleton; index = 0; private startFun(): void { //创建动画模板 this.templet = new Laya.SpineTemplet(); this.templet.loadAni("spine/10101001.json"); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERR...
来源: Laya_社区 发布时间: 20210813
...骨插槽动画方案 Laya Ver2.1.1 export class MSketon { private mFactory: Laya.Templet; public mArmature: Laya.Skeleton private _handler: Laya.Handler; constructor(url: string, handler: Laya.Handler, aniMode: number = 0) { th...
来源: Laya_社区 发布时间: 20200618
..../../res/apes/monkey2.png"], Handler.create(this, this.onAssetLoaded2)); } private onAssetLoaded1(texture: Texture): void { // 使用texture } private onAssetLoaded2(): void { var pic1: Texture = Loader.getRes("../../res/apes/monkey0.png"); var pic2: Texture = Loader.getRes("../../res/apes/monkey1.p...
来源: Laya_示例 发布时间: 20251209
...eMoveScript; import threeDimen.common.SpriteStat; public class LayaAir3D { private var box:MeshSprite3D; private var sphereBody:Object; private var world:Object; private var CANNON:Object; public function LayaAir3D() { //初始化引擎 Laya3D.init(0, 0, true); //适配模式 Laya.stage.scaleMode=St...
来源: Laya_社区 发布时间: 20170331