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

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

1521. 输入框限制输入字符 [ 59%]

...有通过一个类的名字(字符串)来获取该类的方法?类似get class by name 加载单张图片尺寸限制 问题状态 最新活动: 2017-08-26 14:34 浏览: 1294 关注: 2 人

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

1522. 复杂UI类卸载 [ 59%]

复杂UI类卸载 class GameUI extends View{ container:Laya.Sprite; img1:Laya.Image; anim1:Laya.Animation; ... }, 类似这样的复杂UI类,里面包含了各种类型的组件,当需要卸载GameUI类的时候,gameUI.removeSelf();gameUI.destroy(true);gameUI = null ,用这种方式是否可行...

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

1523. 【简单跑酷--JS版】---Lv.5 玩家踩地板 [ 59%]

...DIE = "floor_out_die"; //Floor 是一个显示对象 继承此 Sprite Laya.class(Floor, "Floor", laya.display.Sprite); var _proto = Floor.prototype; /** * type int 1->地板默认宽度 other->随机宽度 */ _proto.init = function(type){ this.maxRight = 0; //如果不开启autoSize 父容器...

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

1524. 问题10600的复现方式 [ 59%]

问题10600的复现方式 package { import laya.webgl.WebGL; public class LateTest { public function LateTest() { Laya.init(100,100,WebGL); Laya.timer.callLater(this,onLater); Laya.timer.clearAll(this); } private function onLater():void{ trace("xxx"); } } } 2018-01-12 添加评论 免费帖 --> ...

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

1525. 官方案例里摄像机绕物体旋转脚本的问题 [ 59%]

...ewer); modelViewer.AroundPos = plane.transform.position; */ export default class ModelViewer extends Laya.Script { // Text m_debugTip; public canRotation_X: boolean = true; public canRotation_Y: boolean = true; public canScale: boolean = true; /// <summary> /// Around center. /// </summary&...

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

1526. Laya.stage.mouseX; Laya.stage.mouseY取到的坐标用来赋给画曲线方法的起点;在左顶点正常,越往右下角起点就越偏移了 [ 59%]

...在左顶点正常,越往右下角起点就越偏移了 // 程序入口 class GameMain { private ps: Laya.Sprite; a: number; b: number; path: Array<number> = ; constructor() { Laya.init(1600, 1400); Laya.stage.bgColor = "#000000"; this.ps = new Laya.Sprite(); Laya.stage.on(Laya.Event.MOUSE_D...

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

1527. laya.components.AnimatorController2D_API3.0 [ 59%]

...d Menu Globals "laya/components/AnimatorController2D" AnimatorController2D Class AnimatorController2D 2D动画控制器 Hierarchy Resource AnimatorController2D Index Constructors constructor Properties _id destroyedImmediately lock name url uuid DEBUG Accessors cpuMemory destroyed gpuMemory id obsol...

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

1528. laya.physics.PolygonCollider_API3.0 [ 59%]

... Only exported Menu Globals "laya/physics/PolygonCollider" PolygonCollider Class PolygonCollider 2D多边形碰撞体,暂时不支持凹多边形,如果是凹多边形,先手动拆分为多个凸多边形 节点个数最多是b2_maxPolygonVertices,这数值默认是8,所以点的数量不...

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

1529. laya.d3.graphics.Vertex.VertexShurikenParticleMesh [ 59%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames VertexShurikenParticleMeshProperties | Methods | Constants Packagelaya.d3.graphics.VertexClasspublic class VertexShurikenParticleMeshInheritanceVertexShurikenParticleMesh VertexShuriKenParticle Object VertexShurikenPart...

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

1530. laya.d3.physics.CharacterController [ 59%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames CharacterControllerProperties | Methods | Constants Packagelaya.d3.physicsClasspublic class CharacterControllerInheritanceCharacterController PhysicsComponent Component Object CharacterController 类用于创建角色...

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