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

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

2041. Laya2.0自定义的组件引用问题 [ 50%]

...直接变成Laya.XProgressBar。在1.7的时候,他们都会直接转为public prGrs:XProgressBar的啊。如果手动去修改,一编译后又变成Laya.XProgressBar了。这样很影响效率等问题啊 君昊 • 2020-08-05 17:40 可以,谢啦

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

2042. 在使用资源版本控制时,URL.formatURL中有个bug [ 50%]

在使用资源版本控制时,URL.formatURL中有个bug public static function formatURL(url:String, base:String = null):String { if (!url) return "null path"; //如果是全路径,直接返回,提高性能 if (url.indexOf(":") > 0) return url; //自定义路径格式化 if (customFormat !=...

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

2043. 打包app后可以横屏旋转 [ 50%]

...旋转 2018-03-07 0 1 分享 微博 QZONE 微信 bepa_wang 赞同来自: public function MainView()         {             super();                          mainCan = new Sprite();             Laya.stage.addChild(mainCan);            ...

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

2044. 性能测试-骨骼 [ 50%]

...ath, type: Loader.BUFFER }], Handler.create(this, this.onAssetsLoaded)); } public onAssetsLoaded(): void { var tTexture: Texture = Loader.getRes(this.mTexturePath); var arraybuffer: ArrayBuffer = Loader.getRes(this.mAniPath); this.mFactory = new Templet(); this.mFactory.on(Event.COMPLETE, this, this...

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

2045. 鼠标交互-滑动 [ 50%]

...port laya.utils.Browser; import laya.utils.Tween; import laya.webgl.WebGL; public class Interaction_Swipe { //swipe滚动范围 private const TrackLength:int = 200; //触发swipe的拖动距离 private const TOGGLE_DIST:int = TrackLength / 2; private var buttonPosition:int; private var beginPosition...

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

2046. 2.0 beta UI Button无法获取 [ 50%]

... Scene=Laya.Scene; export module ui { export class AttackUI extends View { public btn_attack:Laya.Button; constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("Attack"); } } } 扩展UI代码:   import { ui } from "../ui/layaMaxUI"; export default class AttackView...

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

2047. 自定义shader-简单shader [ 50%]

...rt shaderModule.customMaterials.CustomMaterial; /** * ... * @author ... */ public class Shader_Simple { private var rotation:Vector3 = new Vector3(0, 0.01, 0); public function Shader_Simple() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NON...

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

2048. Graphics如何设置fillStyle和strokeStyle不同透明度 [ 50%]

...ineWidth    (可选)边框宽度。          */         public function drawPoly(x:Number, y:Number, points:Array, fillColor:*, lineColor:* = null, lineWidth:Number = 1):void {目前暂时不支持颜色渐变,请使用其他替代方式替换渐变功能! 2018-04-16 0 2 分...

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

2049. 一个很奇怪的问题,不知道其他同学遇到没有 [ 50%]

...另外一个文件common.ts中定义的类: class common{ constructor(){ } public static num : number = 1000000; } 然后启动调试,居然报了这个错:     Uncaught ReferenceError: common is not defined     at new main (main.ts:4)     at main.ts:11   我试了很多次,都是这样,哪...

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

2050. laya.resource.Resource_API3.0 [ 50%]

...ring search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/resource/Resource" Resource Class Resource Resource 资源存取类。 Hierarchy EventDispatcher Resource BaseTexture BaseShader TextTexture HTM...

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