• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 274 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0040 秒)

81. laya.d3.math.Vector2 [ 83%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames Vector2Properties | Methods | Constants Packagelaya.d3.mathClasspublic class Vector2InheritanceVector2 ObjectImplements laya.d3.core.IClone Vector2 类用于创建二维向量。 Public Properties PropertyDefined By ...

来源: Laya2.0_api 发布时间: 20190513

82. 微信小游戏提审后,提示说代码侵权 [ 83%]

...各位读者收获满满!混淆代码的思路: 1、修改所有代码Class 类名称不要重复 2、修改全部全局属性、和至少 1/3的方法名称不要重复(这部分可以写程序去批量改) 3、打乱那些基类、工具类里面的方法顺序, 举例 Class A里面有 F...

来源: Laya_社区 发布时间: 20190613

83. 输入设备-指南针 [ 81%]

...ce/kd.png", compassImg, degreesText, directionIndicator, firstTime = true; class InputDevice_Compass { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(700, 1024, WebGL)...

来源: Laya2.0_示例 发布时间: 20241002

84. Sprite-旋转缩放 [ 80%]

...ript、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。class Sprite_RoateAndScale { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.st...

来源: Laya2.0_示例 发布时间: 20241002

85. Sprite3D-Sprite3D变换 [ 80%]

...cale.z = Math.abs(scaleValue); layaMonkey3.transform.localScale = _scale; }class Sprite3DTransform { private layaMonkey1: Laya.Sprite3D; private layaMonkey2: Laya.Sprite3D; private layaMonkey3: Laya.Sprite3D; private _position: Laya.Vector3; private _rotate: Laya.Vector3; private _scale: Laya.Vector...

来源: Laya_示例 发布时间: 20241002

86. 陀螺仪与加速计 · LayaAir3.0文档 · LAYABOX [ 80%]

...用域为[-90, 90]。 (图3) 下面演示获取旋转方位信息: class Gyroscope_Sample { private info: Laya.Text; constructor() { Laya.init(550, 400); this.info = new Laya.Text(); this.info.fontSize = 50; this.info.color = "#FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height); Laya...

来源: Laya3.0_文档 发布时间: 20230303

87. 陀螺仪与加速计(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 79%]

...mg/3.png) (图3) 下面演示获取旋转方位信息: ```typescript class Gyroscope_Sample { private info: Laya.Text; constructor() { Laya.init(550, 400); this.info = new Laya.Text(); this.info.fontSize = 50; this.info.color = "#FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height); La...

来源: Laya2.0_文档 发布时间: 20210715

88. 加载TiledMap 不显示 [ 79%]

... import Handler = Laya.Handler; import WebGL = Laya.WebGL;  export class TiledMap_IsometricWorld {     private tiledMap: TiledMap;     private layer: MapLayer;     private sprite: Sprite;      constructor ()     {         // 不支持WebGL时自动切换...

来源: Laya_社区 发布时间: 20201230

89. 在开启webgl模式下,每次运行texture类的getPixels方法内存都会增加 [ 79%]

....Sprite import Texture = Laya.Texture import Handler = Laya.Handler export class MaskDemo { private Res: string; private img: Laya.Image; constructor() { //Laya.init(400, 640, Laya.WebGL); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" Laya.Stat.show() //资源路径 this.Res = "test.png"; t...

来源: Laya_社区 发布时间: 20171211

90. 分享:LayaAir实现曲线运动 [ 79%]

...,具体demo已上传附件 package { import laya.display.Sprite; public class CurveDemo { private var ball:Sprite; private var xflag:Boolean; private var v:uint=2; private var d:uint=150; public function CurveDemo() { Laya.init(800,400); ball=new Sprite(); ball.graphics.drawCircle(0,0,50,"#FF00FF...

来源: Laya_社区 发布时间: 20160424