大约有 275 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0039 秒)
Laya_社区(75) Laya_示例(58) Laya3.0_api(37) Laya2.0_api(28) Laya2.0_示例(24) laya_api(21) Laya2.0_文档(19) Laya3.0_文档(13)
...ere.transform.rotate(new Laya.Vector3(0, 90, 0), false, false); } }); })();class RayPicking02 { private ray: Laya.Ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); private point: Laya.Vector2 = new Laya.Vector2(); private _outHitInfo: Laya.RaycastHit = new Laya.RaycastHit(); ...
来源: Laya_示例 发布时间: 20241125
...*************************************************************************/ class DollGunRole extends GunRole{ public _box: GunBox; // toset: /** 飞行的范围, 用于计算飞行路径 */ private _fly_site:Site = new SiteEntity( 10, 10, -1, 400 ); public static _ani_cached:boolean = false; /...
来源: Laya_社区 发布时间: 20180515
...ript、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。class UI_ProgressBar { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya...
来源: Laya2.0_示例 发布时间: 20241125
...Laya.Handler; import WebGL = Laya.WebGL; import Event = Laya.Event; export class InputDevice_Compasss { private compassImgPath:string = "../../res/inputDevice/kd.png"; private compassImg:Sprite; private degreesText:Text; private directionIndicator:Sprite; private firstTime:Boolean = true; constructo...
来源: Laya_示例 发布时间: 20241125
...ya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_RoateAndScale { private ape: Sprite; private scaleDelta: number = 0; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stag...
来源: Laya_示例 发布时间: 20241125
...ackLength / 2; let buttonPosition, beginPosition, endPosition; let button; class Interaction_Swipe { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth...
来源: Laya2.0_示例 发布时间: 20241125
...outPos.x / Laya.stage.clientScaleX, _outPos.y / Laya.stage.clientScaleY); }class D3SpaceToD2Space { private scene: Laya.Scene; private camera: Laya.Camera; private layaMonkey3D: Laya.Sprite3D; private layaMonkey2D: Laya.Image; private _position: Laya.Vector3; private _outPos: Laya.Vector3; private s...
来源: Laya_示例 发布时间: 20241125
...发语言、LayaAirIDE让项目开发更高效。const ROTATE = "rotate"; class Interaction_CustomEvent { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.client...
来源: Laya2.0_示例 发布时间: 20241125
...ort laya.ui.Image; import laya.utils.Handler; import ui.TestViewUI; public class TestView extends TestViewUI { private var PATH_LEN:Number = 120.0; private var speed:Number = 15; private var _path:Sprite = new Sprite(); private var arr:Array = []; public function TestView() { super(); _path.pivot(0,...
来源: Laya_社区 发布时间: 20171113
...73741824; const TiledMapFlipConstHalf = TiledMapFlipConst / 2; class GridSprite extends Laya.Sprite { constructor() { super(...arguments); this.relativeX = 0; this.relativeY = 0; this.isAloneObject = fals...
来源: Laya_社区 发布时间: 20220627