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

大约有 2,482 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0201 秒)

721. List组件拖动浏览时item会出现重叠的现象 [ 78%]

...st = laya.ui.List; export class ListDataSourceMediator { constructor() { } public setUp():void { var list: List = new List(); // 渲染的item list.itemRender = ListDataSourceItem; // 设置行列显示的item个数 list.repeatX = 1; list.repeatY = 4; // list居中显示 list.x = (Laya.stage.width -...

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

722. List属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 77%]

...; import laya.ui.List; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_List { //列表对应图片的路径 private var data:Array = [ "../../../../res/ui/listskins/1.jpg", "../../../../res/ui/listskins/2.jpg", "../../../../res/ui/listskins/3.jpg", "../../../../res/ui/listskins/4...

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

723. CommandBuffer_Outline 每次 addCommandBuffer都会永久增加10Gpu,removed掉相机事件也不会减少 [ 77%]

...r[]  = [];     private materials:Laya.Material[] = [];      public static instance: CommandBuffer_Outline ;      private isUseOuline: boolean = true; // 控制是否使用描边          public static GetInstance(): CommandBuffer_Outline{         if(t...

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

724. APK扩展机制(TypeScript-LayaNative原生服务-LayaNative进阶) [ 77%]

...y.java中的`getExpansionMainPath`函数,设置正确的zip路径。 ``` public String getExpansionMainPath() { return "/storage/emulated/0/Android/test/com.layabox.conch6/test.zip"; } public String getExpansionPatchPath() { return ""; } ``` ### 5.开启外部存储权限 安卓6.0以上的机器...

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

725. image.skin = base64 无效 [ 77%]

... laya.resource.HTMLCanvas; import laya.ui.Image; /** * ... * @author ww */ public class TestBase64Img { public function TestBase64Img() { Laya.init(1000, 900); testDraw(); } public function testDraw():void { var sp:Sprite; sp = new Sprite(); sp.graphics.drawRect(0, 0, 100, 100, "#ff0000"); Laya.stag...

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

726. 分享一个Shader版的CoolDown实现 [ 77%]

...  * 当前着色器的一个实例对象。          */         public static shader: coolDownShader = new coolDownShader();         constructor() {             var vs: string = " \             attribute vec2 position; \             attribute vec2 texcoord; \      ...

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

727. LayaBox二次开发 如何用到 activity的上下文对象Context [ 77%]

...LayaBox怎么二次开发?请指导 如,android里写了一个Test类, public class Test { private Context context; public void init(final Context context) { this.context = context; } public void msg() { Log.d("layabox", "test"); Toast.makeText(context, "测试", Toast.LENGTH_SHORT).show(); } }...

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

728. 模拟石头下落过程不明抖动 [ 77%]

...观察看看,下面贴上代码import './aui/aui'; import { Game } from './public/Game'; import Stage = Laya.Stage; export class TexasMain{ private balls:Laya.Sprite = ; constructor(){ Config.isAntialias = true // alert("宽"+Laya.Browser.clientWidth+"高"+Laya.Browser.clientHeight ); // Laya.init(L...

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

729. 请问layabox对TV端支持的如何? [ 77%]

...持滤镜和混合模式有限: 1、滤镜 /**@private 模糊滤镜。*/ public static const BLUR:int = 0x10; /**@private 颜色滤镜。*/ public static const COLOR:int = 0x20; /**@private 发光滤镜。*/ public static const GLOW:int = 0x08; 2、混合模式 ["normal", "add"...

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

730. laya3d 场景重复添加3d物体报错,必现! [ 77%]

...问题,暂时不要用,把SubMeshDyamicBatch的下面常量设置为0 public static const maxAllowVertexCount:int = 10;         /** @private */         public static const maxAllowAttribueCount:int = 900;//TODO:         /** @private */         public static const ...

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