Skip to content

Spliendid/ILSProject

Repository files navigation

ILS场景序列化

1.ObjID

挂载ObjID,将会自动分配一个id

2.ILSItem

对需要序列化保存和恢复信息的物体挂载ILSItem

image

  1. TransformInfo:保存物体位置、旋转、缩放、Active信息
  2. Parent:保存物体父物体信息
  3. MatInfo:保存Material信息
    image
    • MatID:该material在Renderer-Materials中的下标
    • PropertyType:支持两种类型
    • PropertyName:要保存的属性的名称
  4. Reflection:反射保存类中的字段或属性
    image
    • ClassNmae:类名
    • FieldName:字段或属性的名字
    • ClassType:支持的几种类型

3.序列化和反序列化

  1. 序列化:调用ILSManager.SaveInfo(key)将场景中所有挂载ILSItem的物体序列化指定信息,存入字典中
  2. 反序列化:调用 ILSManager.LoadStepInfo(key),反序列化恢复场景信息

4.Tools

image

  1. CleanDic:清空当前中存储的所有ID信息
  2. IDDic2Json:将当前存储的所有ID信息序列化保存到text中
  3. SearchID:打开一个查找面板
    image

About

场景信息保存与恢复

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages