大约有 582 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0063 秒)
Laya_社区(296) Laya3.0_api(65) Laya2.0_api(58) laya_api(54) Laya2.0_示例(32) Laya_示例(31) Laya2.0_文档(26) Laya3.0_文档(20)
...", type:number, default:5}*/ public horizontalSpace: number = 5; private sprite: Laya.Sprite; constructor() { super(); this.sprite = new Laya.Sprite(); } drawText(x: number, y: number, w: number, h: number) { console.log(2222); var j = 0;//控制行列 var printNumber = 0;//当前输出字数 var fo...
来源: Laya_社区 发布时间: 20191103
...Children?: boolean): VBox Inherited from UIComponent.constructor Overrides Sprite.constructor Defined in laya/ui/UIComponent.ts:24 创建一个新的 Component 实例。 Parameters Default value createChildren: boolean = true Returns VBox Properties Optional _extra _extra: INodeExtra Inherited from ...
来源: Laya3.0_api 发布时间: 20231115
...帧属性面板不见了 关于shader中opengl函数问题 lh文件内meshSprite添加阴影属性无效 1.7.20beta有bug,帧属性面板打不开 Text类中竟然没有pos函数的api~ 编辑器下HtmlDIVElement属性能否支持style选项设置 属性无法获取 执行回调函数时报is not ...
来源: Laya_社区 发布时间: 20170318
...Children?: boolean): HBox Inherited from UIComponent.constructor Overrides Sprite.constructor Defined in laya/ui/UIComponent.ts:24 创建一个新的 Component 实例。 Parameters Default value createChildren: boolean = true Returns HBox Properties Optional _extra _extra: INodeExtra Inherited from ...
来源: Laya3.0_api 发布时间: 20231115
...e太坑 我之前做flash as3的,默认认为drawToTexture是要画目标sprite里面的0,0点。 结果怎么画都没有东西显示,看了下源码发现,里面把它自己(该sprite)的x, y给减掉了, 所以我只能每次在drawToTexture的两个offset参数里, 把x, y参数都...
来源: Laya_社区 发布时间: 20200330
...者消失,测试代码如下 export default class ClipView extends Laya.Sprite { constructor() { super(); this.init(); } init() { let bg = new Laya.Sprite(); bg.graphics.drawRect(0, 0, 500, 500, '#aaa'); this.addChild(bg); this.panel = new Laya.Panel(); this.panel.width = 500; this.panel.height = ...
来源: Laya_社区 发布时间: 20210427
...wnerColliderComponent为false,您可以修改代码,let Spr = new Laya.Sprite(); Spr.pos(200, 100); let RigidBody = Spr.addComponent(Laya.RigidBody); RigidBody.applyOwnerColliderComponent = false; RigidBody.gravityScale = 0; 先手动设置。在即将推出的3.3.2版本中,我们也会在引...
来源: Laya_社区 发布时间: 20250920
...题目前已经被锁定, 无法添加新回复 发起人 阿 相关问题 sprite旋转以后,但是原来碰撞检测rect没有旋转 用了第三方socket类 项目在IDE上可以连接正常运行,为什么打包APK之后在手机上就连接不上socket 如何与服务端建立连接 开启C...
来源: Laya_社区 发布时间: 20180801
...w Laya.GlowFilter("#08f6e3", 7, 0, 0); (this as Laya.Sprite).filters = [glowFilter]; } 2021-01-23 0 0 分享 微博 QZONE 微信 Laya_XS 赞同来自: 麻烦提交可以运行的demo case,你提交的例子现在是报错,你可以提交简单的demo case工程,...
来源: Laya_社区 发布时间: 20210122
...设置用户点击事件 function setUserClick(){ var clickRect = new Laya.Sprite(); clickRect.graphics.drawRect( 0, 0, Laya.stage.width, Laya.stage.height-100 ); clickRect.pos( 0, 0 ); clickRect.size( Laya.stage.width, Laya.stage.height-100 ); Laya.stage.addChild( clickRect ); clickRect.on( Laya.Ev...
来源: Laya_社区 发布时间: 20180201