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

大约有 3,990 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0082 秒)

2351. laya.ani.swf.MovieClip [ 59%]

...果可以当作图片源,再次绘制到其他Sprite里面,示例: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var sp:Sprite = new Sprite();//创建精灵 sp.graphics.drawTexture(htmlCanvas.getTexture());//把截图绘制到精灵上 Laya.st...

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

2352. Laya.loader.clearTextureRes引起的内存泄露以及恢复图片显示闪烁 [ 59%]

...g"),Laya.Handler.create(this,function(bit){                 var arr = Laya.Loader.getAtlas(this.skPath);                 arr.forEach(resUrl=>{                     var tex = Laya.Loader.getRes(resUrl) as Laya.Texture;                ...

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

2353. 注册宏定义与使用宏(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 59%]

...initShader() { ...... //注册宏 CustomTerrainMaterial.__init__(); ...... var customTerrianShader = Laya.Shader3D.add("CustomTerrainShader"); //将ShaderDefines传给 subShader var subShader = new Laya.SubShader(attributeMap, uniformMap, Laya.RenderableSprite3D.shaderDefines, CustomTerrainMaterial....

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

2354. 注册宏定义与使用宏(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 59%]

...initShader() { ...... //注册宏 CustomTerrainMaterial.__init__(); ...... var customTerrianShader = Laya.Shader3D.add("CustomTerrainShader"); //将ShaderDefines传给 subShader var subShader = new Laya.SubShader(attributeMap, uniformMap, Laya.RenderableSprite3D.shaderDefines, CustomTerrainMaterial....

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

2355. laya.net.LoaderManager [ 59%]

...载出错时调度。LoaderManagerProperty DetailmaxLoaderpropertypublic var maxLoader:int = 5 最大下载线程,默认为5个retryDelayproperty public var retryDelay:int = 0 延迟时间多久再进行错误重试,默认立即重试retryNumproperty public var retryNum:int = 1 加载出错后...

来源: laya_api 发布时间: 20170929

2356. laya.map.TileAniSprite [ 59%]

...果可以当作图片源,再次绘制到其他Sprite里面,示例: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var texture:Texture = new Texture(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精...

来源: laya_api 发布时间: 20170929

2357. Laya2.0导入protobufjs第三方库,报错找不到文件 [ 59%]

...  Laya2.0 在Main.ts里:import protoAll = require("../libs/protoAll"); var pCls = protoAll.com.bee.protobuf.ClimbingTowerInfoProto; var p: protoAll.com.bee.protobuf.ClimbingTowerInfoProto = pCls.create(); p.curId = 10; p.isSecondPass = true;   用了第三方库protobufjs。 protoAll.d.ts是prot...

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

2358. Button属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 59%]

...aya.webgl.WebGL; public class ComponentDemo { //按钮资源路径 private var skin:String = "./res/img/btn_test.png"; public function ComponentDemo() { //初始化引擎,设置宽高并开启WebGL渲染模式 Laya.init(1334,750, WebGL); //设置舞台背景颜色 Laya.stage.bgColor = "#ffffff"; /...

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

2359. laya.utils.Log [ 59%]

...] 隐藏/显示日志面板LogProperty DetailmaxCountpropertypublic static var maxCount:int = 20最大打印数量,超过这个数量,则自动清理一次Method Detailclear()method public static function clear():void 清理日志 enable()method  public static function enable():void 激活Log...

来源: laya_api 发布时间: 20170929

2360. laya.filters.ColorFilterAction [ 59%]

...应用颜色滤镜。 ColorFilterActionProperty Detaildatapropertypublic var data:ColorFilterConstructor DetailColorFilterAction()Constructorpublic function ColorFilterAction() 创建一个 ColorFilterAction 实例。 Method Detailapply()method public function apply(srcCanvas:*):* 给指定的对象...

来源: laya_api 发布时间: 20170422