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

大约有 1,561 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0070 秒)

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

....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

1032. 如何过滤拥有相同name的节点对象? [ 54%]

...储和使用 简单示例: package { import laya.display.Sprite; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(550,400); var box:Sprite=new Sprite(); var sp1:Sprite=new Sprite(); sp1.name="aaa"; var sp2:Sprite=new Sprite(); sp2.name="aaa"; var sp3:Sprite=new Sprite(); sp3.na...

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

1033. 关于项目分包的问题?? [ 54%]

...[SWF(width=800,height=600,backgroundColor="0xffffff",frameRate=60)] public class Main extends Sprite { public function Main():void { IFlash.setSize(800, 600);//2D项目中设置场景尺寸 IFlash.setOrientationEx(1); //是否为横屏模式 IFlash.setBgcolor("#FFFFFF"); //背景色 IFlash.showInfo(...

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

1034. laya.d3.utils.Utils3D [ 54%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames Utils3DMethods Packagelaya.d3.utilsClasspublic class Utils3DInheritanceUtils3D Object Utils3D 用于创建3D工具。 Public Methods  MethodDefined By  convert3DCoordTo2DScreenCoord(source:Vector3, out:Vector3):void...

来源: laya_api 发布时间: 20170929

1035. laya.utils.Browser [ 53%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames BrowserProperties | Methods Packagelaya.utilsClasspublic class BrowserInheritanceBrowser Object Browser 是浏览器代理。封装浏览器及原生 js 提供的一些功能。 Public Properties PropertyDefined By ...

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

1036. spine动画放大后,遮罩显示不正常 [ 53%]

...置见下图代码和附件DEMO中的TestScene.scene文件 export default class GameUI extends Laya.Scene { constructor() { super(); //设置单例的引用方式,方便其他引用 GameUI.instance = this; //关闭多点触控,否则就无敌了 Laya.MouseManager.multiTouchEnabled = false; //...

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

1037. 我想动态改自定义shader里的值,应该怎么写?? [ 53%]

...al.__super.call(this);     this.setShaderName("CustomShader"); }   Laya.class(CustomMaterial, "CustomMaterial", Laya.BaseMaterial);   CustomMaterial.DIFFUSETEXTURE = 1; CustomMaterial.NORMALTEXTURE = 2; CustomMaterial.ALPHATESTVALUE = 0;   CustomMaterial.prototype.getDiffuseTexture = function (...

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

1038. laya.maths.Vector4_API3.0 [ 53%]

...nherited Externals Only exported Menu Globals "laya/maths/Vector4" Vector4 Class Vector4 Vector4 用于创建四维向量。 Hierarchy Vector4 Implements IClone Index Constructors constructor Properties w x y z ONE UnitW UnitX UnitY UnitZ ZERO Methods clone cloneTo equal forNativeElement fromArra...

来源: Laya3.0_api 发布时间: 20231115

1039. 重复背景,全方向地图拖动Demo [ 53%]

...o UI创建4个image  var分别: map0,map1,map2,map3 背景图宽高 1800 class WorldPage extends ui.WorldPageUI{ constructor (x,y) { super() this.maxX = 149850 this.maxY = 97500 this.offsetX = x * 150 this.offsetY = y * 150 this.downMouseX = 0 this.downMouseY = 0 Laya.loader.load(['bg/world_bg.jpg...

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

1040. Socket连接不上(已解决) [ 53%]

... laya.webgl.WebGL; //    import laya.webgl.WebGL;          public class LayaDemo      {         private var socket:Socket;         private var output:Byte;                  private var txt:Text;                  public function LayaDemo()        ...

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