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

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

181. localRotationEulerY旋转位置错误 [ 53%]

...方式实现,比如子弹脚本。  */ export default class GameUI extends ui.test.TestSceneUI {     private mat1: Laya.BlinnPhongMaterial;     private newScene: Laya.Scene3D;     private arr: any;     constructor() {         super();         this.arr...

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

182. 龙骨动画的监听回调,有时能回调,有时不能回调 [ 53%]

...dzFarmersAni from "./DdzFarmersAni";  export default class DdzLandlordAni extends SingleBase{   private mFactory: Laya.Templet = null; public isFinish = false; private mArmatureUsed:Array<Laya.Skeleton> = []; private mArmatureUnUsed:Array<Laya.Skeleton> = [];  public static getInstanc...

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

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

184. 请大家帮助优化一下这个抛物线的代码 [ 53%]

...望大家指正 https://my.oschina.net/u/659068/blog/1564002  class Ball extends Laya.Sprite{ private static cached:boolean = false; private body:Laya.Sprite; constructor(){ super(); this.init(); } public init():void{ if(!Ball.cached){ Ball.cached = true; this.body = new Laya.Sprite(); this.body.l...

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

185. 3d显示对象克隆体超出舞台不再显示的bug2.1.0.btea1 [ 53%]

...脚本方式实现,比如子弹脚本。 */ export default class GameUI extends ui.test.TestSceneUI { scene3d:Laya.Scene3D; sp:Laya.Sprite3D; sp2:Laya.Sprite3D; translateA = new Laya.Vector3(-0.05, 0, 0); translateD = new Laya.Vector3( 0.05, 0, 0); constructor() { super(); //添加3D场景 var sce...

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

186. 自定义场景继承导出,会在自定义类中加入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

187. HTTP通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 53%]

...tpRequest; const { regClass } = Laya; @regClass() export class Network_GET extends Laya.Script { private hr: HttpRequest; private logger: Laya.TextArea; private text: Laya.Label = new Laya.Label(); onAwake(): void { this.initUI(); this.connect(); } /** * 初始化UI */ private initUI(): void { this....

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

188. List 组件做的手风琴Demo [ 52%]

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

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

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

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

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