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

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

161. 编辑模式下的赋值不保留? [ 68%]

...名的无头像者 • 2018-10-25 14:56 写一个ts文件,写上 export default class Move extends Laya.Script{ /** @prop {name:target,tips:"目标容器",type:Prefab}*/ targetPrefab:Laya.Prefab; } 将文件在编辑模式下赋给点添加组件=》code=》move 然后创建一个box拖...

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

162. laya.d3.resource.RenderTexture_API3.0 [ 68%]

...BUG Accessors anisoLevel baseMipmapLevel colorFormat compareMode cpuMemory defaultTexture depthStencilFormat depthStencilTexture destroyed dimension filterMode format gammaCorrection gammaSpace generateDepthTexture generateMipmap gpuMemory height id isCube maxMipmapLevel mipmap mipmapCount multiSamp...

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

163. laya.d3.core.Sprite3D_API3.0 [ 68%]

...in laya/d3/core/Sprite3D.ts:142 创建一个 Sprite3D 实例。 Parameters Default value name: string = null 精灵名称。 Default value isStatic: boolean = false 是否为静态。 Returns Sprite3D Properties Optional _extra _extra: INodeExtra Inherited from Node._extra Defined in laya/display/No...

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

164. 鼠标脚本(TypeScript-3D基础(TS)-LayaAir3D之鼠标交互) [ 68%]

...且给4个猴都添加了脚本。 > **脚本类**: ```typescript export default class MouseScript extends Laya.Script3D{ private meshsp:Laya.MeshSprite3D; constructor(){super();} /** * 覆写3D对象组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一...

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

165. laya.resource.RenderTexture_API3.0 [ 68%]

...BUG Accessors anisoLevel baseMipmapLevel colorFormat compareMode cpuMemory defaultTexture depthStencilFormat depthStencilTexture destroyed dimension filterMode format gammaCorrection gammaSpace generateDepthTexture generateMipmap gpuMemory height id isCube maxMipmapLevel mipmap mipmapCount multiSamp...

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

166. LayaAir 2.0 TS版编译出错GameConfig跟创建项目时生成的内容不一致了 [ 68%]

...port DropBox from "./script/DropBox" /* * 游戏初始化配置; */ export default class GameConfig{ static width:number=640; static height:number=1136; static scaleMode:string="fixedwidth"; static screenMode:string="none"; static startScene:string="test/TestScene.scene"; static sceneRoot:string="";...

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

167. RopeJoint代码动态创建 无法设置otherbody [ 68%]

...iguanqing * @ email:0110110110@qq.com * @ data: 2022-04-09 15:53 */ export default class fruit extends Laya.Script {     static Fru:fruit;     public rope:Laya.RopeJoint     constructor() {         super();        fruit.Fru=this;             }      onAwake() {         let ...

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

168. 3D场景跳转到2D场景问题 [ 68%]

...ceneUI} from '../ui/layaMaxUI' import GameScene from './GameScene'; export default class VictoryScene extends VictorySceneUI {  constructor() { super();   } onAwake(){ let btnOnce=this.getChildByName("btnOnce"); btnOnce.on(Laya.Event.CLICK,this,this.onClick); } onClick(e){ this.removeSelf(); let g...

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

169. laya.device.geolocation.Geolocation_API3.0 [ 68%]

...ameters onSuccess: Handler 带有唯一Position参数的回调处理器。 Default value onError: Handler = null 可选的。带有错误信息的回调处理器。错误代码为Geolocation.PERMISSION_DENIED、Geolocation.POSITION_UNAVAILABLE和Geolocation.TIMEOUT之一。 Returns void Static watch...

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

170. 实例化 laya.ani.bone.Skeleton 对象报错 [ 68%]

实例化 laya.ani.bone.Skeleton 对象报错 export default class showSpine extends Laya.Script{ constructor() { super(); //创建一个Skeleton对象 //Laya let skeleton: laya.ani.bone.Skeleton = new laya.ani.bone.Skeleton(); } } 实例化报错 为啥 2018-09-28 添加评论 免费帖 --> 分享...

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