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

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

701. HTML文本 · LayaAir3.0文档 · LAYABOX [ 42%]

...;<p>p</p><img src='res/boy.png'></img>"; */ export class HTMLDivElement extends Sprite { 下面我们通过一些示例代码来看看运行效果: 3.1 同一个文本中设置Bold、Font、FontSize、Color、下划线 【注意:目前不支持斜体、描边、span标签...

来源: Laya3.0_文档 发布时间: 20230303

702. laya.ui.TextInput [ 42%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames TextInputProperties | Methods | Events Packagelaya.uiClasspublic class TextInputInheritanceTextInput Label Component Sprite Node EventDispatcher ObjectSubclasses TextArea TextInput 类用于创建显示对象以显示...

来源: laya_api 发布时间: 20170929

703. 微信环境下面Laya.Browser.window.protobuf.load不能读取本地的proto文件 [ 41%]

...  at Function.eof (http://127.0.0.1:53462/game/code.js:93141:69)     at Class (http://127.0.0.1:53462/game/code.js:93649:37)     at Type.get (http://127.0.0.1:53462/game/code.js:98613:48)     at Type.create (http://127.0.0.1:53462/game/code.js:98776:20)     at onAssetsLoaded (http://127.0.0...

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

704. 分享水波一个shader [ 41%]

...er = Laya.SubShader; import BaseTexture = Laya.BaseTexture; export default class Test1Material extends BaseMaterial { public readonly MAIN_TEX:number = Shader3D.propertyNameToID("u_MainTex"); public readonly NOISE_TEX:number = Shader3D.propertyNameToID("u_NoiseTex"); public readonly Time:number = Sh...

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

705. 射线检测-碰撞器混合 [ 41%]

...eyMeshSprite3D.addComponent(DrawBoxColliderScript); this.debug = false; } }class ColiderDemo { /**键盘的上下左右控制猴子位移**/ private scene:Laya.Scene; private camera:Laya.Camera; private layaMonkey:Laya.Sprite3D; private layaMonkeyMeshSprite3D:Laya.SkinnedMeshSprite3D; private _tempU...

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

706. laya.ui.DialogManager_API3.0 [ 41%]

...Externals Only exported Menu Globals "laya/ui/DialogManager" DialogManager Class DialogManager DialogManager 对话框管理容器,所有的对话框都在该容器内,并且受管理器管理。 任意对话框打开和关闭,都会出发管理类的open和close事件 可以通过UIConfig设...

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

707. APP二次开发传字符串过长问题 [ 41%]

...。但是native打包安卓APP后, ExportJavaFunction.CallBackToJS(Test.class,"test",str); 二次开发中 APP调用JS方法的时候str字符串过长有丢失,请问是否有这个问题呢?请帮忙查看下? (字符串大概只收到1000个字符左右) 原字符串(在JAVA端打印...

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

708. laya.physics.PhysicsDebugDraw [ 41%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames PhysicsDebugDrawProperties | Methods | Events Packagelaya.physicsClasspublic class PhysicsDebugDrawInheritancePhysicsDebugDraw Sprite Node EventDispatcher Object 物理辅助线,调用PhysicsDebugDraw.enable()开启...

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

709. 射线检测-点击行走 [ 41%]

...kAt(box.transform.position, _vector3, _upVector3, _quaternion); } }); })();class RayPicking03 { private ray: Laya.Ray; private point: Laya.Vector2 = new Laya.Vector2(); private _outHitInfo: Laya.RaycastHit; private _position: Laya.Vector3; private _upVector3: Laya.Vector3; private _quaternion: Laya....

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

710. 列表组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 40%]

...意基类必须和预制体根节点类型匹配,一般都是GButton。 class MyItem extends Laya.GButton { //注意!在onConstruct里才可以获取子对象,建议在这里做初始化,不要在构造函数里做初始化 onConstruct() { //this.xx = this.getChild("xx"); //this.xx.on(Laya.E...

来源: Laya3.0_文档 发布时间: 20251128