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

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

171. prop 识别不到 [ 52%]

...,IDE F8编译时也不通过   代码: export default class Index extends Laya.Script {     /* @prop {name: speed, tips: "速度", type: Number, default: 10} */      constructor() {         super();     }      onAwake() {         console.log("...

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

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

...脚本方式实现,比如子弹脚本。 */ 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

173. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 51%]

...*******************************************************/ class DollGunRole extends GunRole{  public _box: GunBox; // toset: /** 飞行的范围, 用于计算飞行路径 */ private _fly_site:Site = new SiteEntity( 10, 10, -1, 400 );  public static _ani_cached:boolean = false;  // toset: /** 飞...

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

174. 碰撞检测 outHitInfo.distance 一直等于 -1 ?(TS代码) [ 51%]

...直等于-1?  -------------------------------- class RoleControlScript extends Laya.Script{ /*角色模型*/ public roleModel:Laya.Sprite3D; /*角色动画组件*/ public roleAni:Laya.Animator; /*角色当前动作*/ public currentAction:string = "stand"; /*角色动画是否完成*/ public aniCo...

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

175. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 51%]

...aMaxUI"; import MyDialogUI = ui.game.MyDialogUI; ​ export class MyDialog extends MyDialogUI {    constructor() {        super();   } ​    onOpened(param: any): void {        console.log("mylog------:" + JSON.stringify("onOpened"));        this.openDataView.postMsg("test10086"); ...

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

176. layaFlash 无法使用 Loader 加载外部SWF和图片 [ 50%]

...plicationDomain; import flash.system.LoaderContext; public class SwfBinary extends Sprite { public function SwfBinary() { super(); if(stage) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=null):void { var loader:Loader=new Loader(); var context...

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

177. typeScript Java互调问题 [ 50%]

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

178. UI-Tree [ 49%]

..."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”时...

来源: Laya_示例 发布时间: 20251130

179. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 48%]

....addChild(this.text); } } //激活启动类 new Main(); class MonkeyScript extends Laya.Script3D{     constructor(){         super();         this.scene = null;         this.text = null;         this.camera = null;         this.lastPosition = new Laya.Vect...

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

180. HttpRequest详解(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 48%]

...一个简单的继承的示范: ```typescript class HttpRequestExtension extends Laya.HttpRequest { constructor() { super(); } public send(url:string,data:any=null,method:string="get", responseType:string="text", headers:any=null):void{ super.send(url,data,method,responseType,headers); this._http....

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