大约有 3,990 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0082 秒)
Laya_社区(2836) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(55)
...果可以当作图片源,再次绘制到其他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
...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
...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
...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
...载出错时调度。LoaderManagerProperty DetailmaxLoaderpropertypublic var maxLoader:int = 5 最大下载线程,默认为5个retryDelayproperty public var retryDelay:int = 0 延迟时间多久再进行错误重试,默认立即重试retryNumproperty public var retryNum:int = 1 加载出错后...
来源: laya_api 发布时间: 20170929
...果可以当作图片源,再次绘制到其他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
... 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
...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
...] 隐藏/显示日志面板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
...应用颜色滤镜。 ColorFilterActionProperty Detaildatapropertypublic var data:ColorFilterConstructor DetailColorFilterAction()Constructorpublic function ColorFilterAction() 创建一个 ColorFilterAction 实例。 Method Detailapply()method public function apply(srcCanvas:*):* 给指定的对象...
来源: laya_api 发布时间: 20170422