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

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

181. 自定义场景继承导出,会在自定义类中加入Laya.前缀导致layaMaxUI文件报错 [ 53%]

...   layaMaxUI.ts代码如下   export gm {     export class GmPanelUI extends Laya.Base {         public bg:Laya.Sprite;         public input:Laya.TextInput;         public btnSend:Laya.Button;         public btnClose:Laya.Button;         constructor(){ super()}  ...

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

182. typeScript Java互调问题 [ 53%]

...———————————————— public class MainActivity extends Activity{          private IPlugin mPlugin = null;     private IPluginRuntimeProxy mProxy = null;     boolean isLoad=false;     boolean isExit=false;     private WebView webView = null;     private Acti...

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

183. List 组件做的手风琴Demo [ 53%]

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

184. 两个物体 ,如果在update里修改其中一个物体的rotationEuler,会触发另一个物体的onTriggerEnter回调 [ 53%]

...脚本方式实现,比如子弹脚本。 */ export default class GameUI extends ui.test.TestSceneUI { private mat1: Laya.BlinnPhongMaterial; private newScene: Laya.Scene3D; private sMapRes = "remote/model/res/Conventional/map1.ls" private sBullRes = "remote/model/res/Conventional/bull.lh" private ...

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

185. Tree属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 53%]

..."Box", "props": {"name": "render", "right": "0", "left": "0"}}; class Item extends Box { constructor() { super(); this.right = 0; this.left = 0; var selectBox: Clip = new Clip("res/ui/tree/clip_selectBox.png", 1, 2); selectBox.name = "selectBox";//设置 selectBox 的name 为“selectBox”时,将...

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

186. 扇形遮罩画不全画了一个很奇怪的形状但是矩形的就没问题。显示效果如下:版本号1.7.10 [ 52%]

...ize;     import laya.ui.Image;          public class ProcessTimer extends Sprite     {         public var img:Image;         public var maskSp:Sprite;         public var percent:Number;         public var type:String = "PROGRESS_TIMER_TYPE_RADIAL";         p...

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

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

...ght": "0", "left": "0"}}; /****树形结构中的单元格****/ class Item extends Box { public function Item() { //实例“文件夹”背景切片对象 var selectBox:Clip = new Clip("../../../../res/ui/tree/clip_selectBox.png", 1, 2); //设置 selectBox 的name 为“selectBox”时,将被识...

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

188. 发现bug,update大问题!!!!!!!!! 2.13版本 [ 52%]

...t"; import UIMain from "../ui/Game/UIMain";  export default class GameWnd extends BaseWin {     public view: UIMain;     /** 角色 */     private character: Laya.Sprite     /** 角色刚体*/     private rig: Laya.RigidBody     /** 医疗包*/     private addhp: Laya.Sprite     /**...

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

189. 如何监听移动端软键盘的弹出和收回? [ 51%]

...flash.text.TextFieldType; import flash.ui.Keyboard; public class TextInput extends Sprite { private var textInput:TextField; private var sourceWidth:Number; private var sourceHeight:Number; public function TextInput() { //转换成h5项目后获取浏览器的宽度 //[IF-JS]sourceWidth = Laya.windo...

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

190. 射线检测报错,outHitInfo.sprite3D=null; [ 51%]

...射线检测报错,outHitInfo.sprite3D=null; 代码: class SceneScript extends Laya.Script{  private ray : Laya.Ray; private hit: Laya.RaycastHit; private phasorSprite3D:Laya.PhasorSpriter3D; private camera : Laya.Camera; private scene: Laya.Scene;  public _load(owner : any):void{ this.scene =...

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