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

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

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

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

192. 如何监听移动端软键盘的弹出和收回? [ 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

193. 2.3.0beta 各种bug [ 51%]

...禁用的,需要重新开启 修改 laya.d3.js   class PhysicsCollider extends PhysicsTriggerComponent {      constructor(collisionGroup = Physics3DUtils.COLLISIONFILTERGROUP_DEFAULTFILTER, canCollideWith = Physics3DUtils.COLLISIONFILTERGROUP_ALLFILTER) {      super(collisionGroup, canCol...

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

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

...射线检测报错,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

195. 2.x引擎项目升级指南 · LayaAir3.0文档 · LAYABOX [ 50%]

....on(Laya.Event.CLICK, ()=> { console.log("clicked"); }); class MyScript extends Laya.Script { //脚本事件 onMouseClick(e:Event) { console.log("clicked"); } } aNode.addComponent(MyScript); 以上两种方式是等价的,且在纯2D,或2D/3D混合这两种情况中均可正常使用。 3.2 2...

来源: Laya3.0_文档 发布时间: 20230406

196. [BUG]刚体约束问题,移动后约束混乱! [ 50%]

...方式实现,比如子弹脚本。  */ export default class GameUI extends ui.test.TestSceneUI {   private newScene:Laya.Scene3D;   private boxA: Laya.MeshSprite3D;   constructor() {     super();     Laya3D.init(0, 0);     Laya.stage.scaleMode = Laya.Stage.SCALE_FUL...

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

197. 描边Shader,使用了两个Pass [ 50%]

...截图如下:   核心代码如下 export default class OutlineMaterial extends Laya.BaseMaterial { constructor() { super() var attributeMap = { 'a_Position': Laya.VertexMesh.MESH_POSITION0, 'a_Normal': Laya.VertexMesh.MESH_NORMAL0, 'a_Texcoord': Laya.VertexMesh.MESH_TEXTURECOORDINATE0, } var uni...

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

198. 分享:简单聊天室 [ 48%]

...port laya.utils.Browser; import ui.test.HtmlPageUI; public class HtmlView1 extends HtmlPageUI { private var str:String; private var str2:String; private var isSend:Boolean=false; public function HtmlView1() { super(); // 文本样式一 str="<span color='blue' style=' font" + ":18px 华文琥珀'...

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

199. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 47%]

...18-05-08 0 0 分享 微博 QZONE 微信 Miller 赞同来自:   class Item extends Laya.Box {   public static WID: number = 600; public static HEI: number = 85; private img: Laya.Image;         //private text: Laya.Label; constructor(){ super(); this.size(Item.WID, Item.HEI); this.img = ne...

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

200. [LayaAirIDE 2.0]TextInput真机输入时显示蓝色字,求解 [ 46%]

...se"; import Notice from "../../utils/Notice"; export default class AuthReg extends ui.AuthRegUI { /** 密码临时存储 */ private _tmp_pwd: string = ""; /** 输入框数组 */ private _arrInput: Laya.TextInput = [this.input_nickname, this.input_mobile, this.input_password, this.input_repassword]; ...

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