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

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

2051. 关于removeChildren、 destroy和destroyChildren的疑惑 [ 53%]

...); this.alpha = 0; Laya.stage.addChild(this); // this.pos(440,640); } Laya.class(sightBeadSprite, "SightBead", Laya.Sprite); return sightBeadSprite; }());然后如此使用destroy for (var i = 0; i < Laya.stage.numChildren; i++) { var object = Laya.stage.getChildAt(i); // object.removeSelf(); Lay...

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

2052. laya.d3.core.MeshRenderer_API3.0 [ 53%]

...ernals Only exported Menu Globals "laya/d3/core/MeshRenderer" MeshRenderer Class MeshRenderer MeshRenderer 类用于网格渲染器。 Hierarchy BaseRender MeshRenderer SkinnedMeshRenderer Implements IBoundsCell Index Constructors constructor Properties _extra _receiveShadow _singleton owner runInEd...

来源: Laya3.0_api 发布时间: 20231115

2053. SVG渐变精灵的扩展脚本继承了多个精灵, 在safari环境下重叠了渲染 [ 53%]

..., 求大大指点, 感激   附上渐变SVG文字的代码:   /** * this class is a extension of texts with gradient color  */ var effect; (function (effect) {     var GradientText = (function (_super) {         const style = {             DEFAULT: "default",             VERTICA...

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

2054. laya.d3.shader.Shader3D [ 53%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames Shader3DProperties | Methods | Constants Packagelaya.d3.shaderClasspublic class Shader3DInheritanceShader3D Object Shader3D 类用于创建Shader3D。 Public Properties PropertyDefined By  debugMode : Boolean = false...

来源: Laya2.0_api 发布时间: 20190513

2055. ProgressBar 代码问题 [ 53%]

...g.changeValue); }); 进度条代码: import Handler = Laya.Handler; export class Onloading extends ui.LoadingUI{        constructor(){        super();        this.loadingBar.changeHandler = new Handler(this, this.onChange); } public changeValue():void{        console.log("change"); ...

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

2056. button 按下放缩特效 [ 53%]

... laya.editorUI {     /**      * Graphics解析器      */     // class GraphicParser extends laya.display.GraphicAnimation {     //     protected _getTextureByUrl(url: string): string;     //     static parseAnimationData(aniData: any): any;     // } }   T15_UITest.zip 2017-08-1...

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

2057. sprite.loadImage加载图片怎么设置要显示的x,y坐标和宽高? [ 53%]

...显示的x,y坐标和宽高? 代码: import TiledMap = Laya.TiledMap; class GameMain{ private tMap:TiledMap; constructor() { Laya.init(935, 224, Laya.WebGL); this.tMap = new TiledMap(); var viewRect: Laya.Rectangle = new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height); this.tMap.create...

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

2058. 自定义对话框设置zOrder后,关闭时报错 [ 53%]

...ext = '' + this.count; Laya.timer.loop(1000, this, this.countdown); } Laya.class(countdownBar, "CountdownBar", CountdownUI); return countdownBar; }()); CountdownBar.prototype.countdown = function () { this.count--; if (this.count > 0) { this.countLabel.text = '' + this.count; } else { Laya.timer....

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

2059. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 53%]

...引用  还有运行效果  希望有所了解的给指点一下 多谢 class MultiTouch{     private text:Laya.Text;     private _upVector3:Laya.Vector3 = new Laya.Vector3(0, 1, 0); constructor(){         Laya.alertGlobalError = true; this._upVector3 = new Laya.Vector3(0, 1, 0); /...

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

2060. 分享:IDE使用SWF动画的销毁与反复创建 [ 53%]

...ort laya.utils.Handler;     import view.TestView;          public class LayaUISample {                  public function LayaUISample() {             //初始化引擎             Laya.init(600, 400);             start();         }         p...

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