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

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

1081. layanative安卓端需要怎么添加ttf字体,需要增加两种字体? [ 67%]

...andler; /** * ... * @author ww */ public class TestTTFLoader  {   public function TestTTFLoader()  { Laya.init(1000, 900);   Laya.loader.load("res/remember.ttf",new Handler(this,test)); }   private function test():void { var text:Text; text = new Text(); text.fontSize = 30; text.color = "#ff000...

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

1082. 鼠标交互-滑动 [ 67%]

...ipt、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Event = Laya.Event; var Browser = Laya.Browser; var Tween = Laya.Tween; var WebGL = Laya.WebGL; //swipe滚动范围 var TrackLength = 200; //触发swipe的拖...

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

1083. laya.d3.component.SimpleSingletonList_API3.0 [ 67%]

...impleSingletonList constructor clearElement Legend Object literal Variable Function Type alias Class Class with type parameter Constructor Method Enumeration Interface

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

1084. 灯光-方向光 [ 67%]

...onkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, function () { var aniSprite3d = layaMonkey.getChildAt(0); var animator = aniSprite3d.getComponentByType(Laya.Animator); animator.play(null, 1.0, 40, 70); }); var _quaternion = new Laya.Quaternion(); Laya.timer.frameLoop(1, nu...

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

1085. laya.d3.shader.GLSLCodeGenerator_API3.0 [ 67%]

...teString glslUniformString getAttributeType Legend Object literal Variable Function Type alias Class Class with type parameter Enumeration Interface Static method

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

1086. WebSocket发送与接收数据(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 67%]

...blic class Game { private var socket:Socket; private var byte:Byte; public function Game() { //初始化引擎 Laya.init(600, 400,WebGL);// this.byte = new Byte(); this.byte.endian = Byte.LITTLE_ENDIAN;//这里我们采用小端; this.socket = new Socket(); this.socket.endian = Byte.LITTLE_ENDIAN;...

来源: Laya2.0_文档 发布时间: 20210715

1087. laya.d3.math.ContainmentType_API3.0 [ 67%]

...ontainmentType Contains Disjoint Intersects Legend Object literal Variable Function Type alias Class Class with type parameter Enumeration Interface Static property

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

1088. laya.ani.bone.SlotData_API3.0 [ 67%]

..." SlotData displayArr name getDisplayByName Legend Object literal Variable Function Type alias Class Class with type parameter Property Method Enumeration Interface

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

1089. laya.components.AnimationClip2DParse01_API3.0 [ 67%]

...ationClip2DParser01" AnimationClip2DParse01 Legend Object literal Variable Function Type alias Class Class with type parameter Enumeration Interface

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

1090. 文本-字符限制 [ 67%]

...tils.Browser; import laya.webgl.WebGL; public class Text_Restrict { public function Text_Restrict() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 300, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya...

来源: Laya2.0_示例 发布时间: 20260106