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

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

321. 动画混合问题,Avatar动画混合报错. [ 52%]

.../被扔 dizziness = 'dizziness',//眩晕 }  export default class RoleBase extends Laya.Script3D{ public nGrade:number = 0; public nSpeed:number = 5;  public sprite:Laya.Sprite3D = null;  public animator:Laya.Animator = null;  public Init(){ this.sprite = this.owner as Laya.Sprite3D; this.animato...

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

322. 分享一个自己做的游戏公告功能,跑马灯效果 [ 52%]

....Sprite import Box = Laya.Box /** 公告栏 */ export default class Notice extends View { /** 滚动区域 */ hornBox: Box /** html对象 */ html: HTMLDivElement /** 滚动框的宽度 */ defaultX = 1110 /** 动画是否出于播放状态 */ isPlayIng:boolean = false /** 空格 */ private space:stri...

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

323. 2.0里面的组件(Laya.Script)的prop其中几个类型应该怎么设置 [ 52%]

...其他的类型的范例供大家参考   export default class TestScript extends Laya.Script { /** @prop {name:intType, tips:"整数类型示例", type:Int, default:1000}*/ public intType: number = 1000; /** @prop {name:numType, tips:"数字类型示例", type:Number, default:1000}*/ public numTyp...

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

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

...格类,继承于Box import laya.ui.Box; import laya.ui.Image; class Item extends Box { /***单元格宽***/ public static var WID:int = 375; /***单元格高***/ public static var HEI:int = 85; /***单元格中图片***/ public var img:Image; public function Item() { //设置大小宽高 size(WID,...

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

325. 脚本组件继承于 Laya.Script。 其中的_update方法,多长时间会调用一次? 可以设置调用时间吗? [ 51%]

...nent3D</code> 类用于创建组件的父类。 */ class Component3D extends laya.events.EventDispatcher implements laya.d3.core.render.IUpdate { protected static _uniqueIDCounter: number; protected _id: number; protected _cachedOwnerLayerMask: number; protected _cachedOwnerEnable: boolean; pr...

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

326. 如何自定义Shader(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 51%]

...BaseMaterial变更为Material。 ```typescript export class CustomMaterial extends Laya.Material { constructor() { super(); //设置本材质使用的shader名字 this.setShaderName("CustomShader"); } } ``` #### 4.使用自定义材质 ​ 在使用自定义材质之前,一定要记得初始化自...

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

327. LayaBox HelloWorld实战 [ 51%]

...话框,对话框里面展示 Hello World!export default class HelloWorld extends Laya.Scene { constructor() { super(); HelloWorld.instance = this; } onBtnShowClick(){ var dialog = new Laya.Dialog(); dialog.width=300; dialog.height=600; //var bg = new Laya.Image('comp/img_bg.png'); //dialog.addChil...

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

328. ScrollRect设置会引起其他的UI资源无法正在显示 [ 51%]

...ge; import laya.utils.Handler; import ui.TestViewUI; public class TestView extends TestViewUI { private var PATH_LEN:Number = 120.0; private var speed:Number = 15; private var _path:Sprite = new Sprite(); private var arr:Array = []; public function TestView() { super(); _path.pivot(0,0); _path.pos(a...

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

329. swf转成H5资源显示超出原有范围 [ 51%]

...Context;     import flash.system.Capabilities;     public class Main extends Sprite     {         public function Main():void         {             if (stage) init();             else addEventListener(Event.ADDED_TO_STAGE, init);         }          ...

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

330. List 组件做的手风琴Demo [ 51%]

...listArr[0].refresh()         }     /** * 创建BOX */ class Item extends Laya.Box{     public static WID:number =100;     public static HEI:number =30;     constructor(){         super()         this.size(Item.WID,Item.HEI);         var img1 =new Laya.Im...

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