大约有 1,204 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0044 秒)
Laya_社区(690) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(59) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
...; export class BlendMode_Lighter { // 一只凤凰的分辨率是550 * 400 private phoenixWidth: number = 550; private phoenixHeight: number = 400; private bgColorTweener: Tween = new Tween(); private gradientInterval: number = 2000; private bgColorChannels: any = { r: 99, g: 0, b: 0xFF }; construct...
来源: Laya2.0_示例 发布时间: 20241123
...ya.Stat; import WebGL = Laya.WebGL; export class PerformanceTest_Cartoon { private colAmount = 100; private extraSpace = 50; private moveSpeed = 2; private rotateSpeed = 2; private characterGroup: Array; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.heigh...
来源: Laya_示例 发布时间: 20241123
... Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Clip { private buttonSkin: string = "res/ui/button-7.png"; private clipSkin: string = "res/ui/num0-9.png"; private bgSkin: string = "res/ui/coutDown.png"; private counter: Clip; private currFrame: number; private controller: Button;...
来源: Laya2.0_示例 发布时间: 20241123
...疑问 1.关于 2.1.0版本 Vector3 的疑问 如下:2.1.0的Vector3 /**@private */ public static const _ZERO:Vector3 =/*[STATIC SAFE]*/ new Vector3(0.0, 0.0, 0.0); /**@private */ public static const _ONE:Vector3 =/*[STATIC SAFE]*/ new Vector3(1.0, 1.0, 1.0); /**@private */ public static const _Ne...
来源: Laya_社区 发布时间: 20190706
...ya.Stat; import WebGL = Laya.WebGL; export class PerformanceTest_Cartoon { private colAmount = 100; private extraSpace = 50; private moveSpeed = 2; private rotateSpeed = 2; private characterGroup: Array; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.heigh...
来源: Laya2.0_示例 发布时间: 20241123
...写的,现附上代码export class Scene{ // 当前场景的配置信息 private _mLevelConf:LevelConf = null; // 地图文件 private _mTiledMap:TiledMap = null; // 自定义信息文件 private _mLoader:Loader = null; // 当前地图X坐标 private _mViewPortX:number = 0; // 当前地图Y左边 ...
来源: Laya_社区 发布时间: 20180529
...a.WebGL; import Render = Laya.Render; export class Physics_NewtonsCradle { private stageWidth: number = 800; private stageHeight: number = 600; private Matter: any = Browser.window.Matter; private LayaRender: any = Browser.window.LayaRender; private mouseConstraint: any; private engine: any; constru...
来源: Laya_示例 发布时间: 20241123
... Laya.Handler; import Event = Laya.Event; export class InputDevice_Shake { private picW:number = 484; private picH:number = 484; private console:Text; private shakeCount:number = 0; constructor() { Laya.init(this.picW, Browser.height * this.picW / Browser.width); Laya.stage.scaleMode = Stage.SCALE_S...
来源: Laya_示例 发布时间: 20241123
...ffer() 创建一个 CommandBuffer 实例。 CommandBuffer _apply():void private CommandBuffer blit(source:RenderTexture, dest:RenderTexture, shader:Shader3D, shaderData:ShaderData = null, subShader:int = 0):void private CommandBuffer clear():void private CommandBuffer setRenderTarget(ren...
来源: Laya2.0_api 发布时间: 20190513
...源 import SpineSkeleton = Laya.SpineSkeleton; export class SpineBinary { private aniPath = "res/bone/spineboy-pma.skel"; private templet:SpineTemplet; private skeleton:SpineSkeleton; private index: number = -1; constructor() { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.scaleMode = ...
来源: Laya2.0_示例 发布时间: 20241123