ModelPostProcessor.cs 441 B

123456789101112131415
  1. using UnityEngine;
  2. using UnityEngine.Rendering;
  3. using UnityEngine.Rendering.Universal;
  4. namespace UnityEditor.Rendering.Universal
  5. {
  6. class ModelPostprocessor : AssetPostprocessor
  7. {
  8. void OnPostprocessModel(GameObject go)
  9. {
  10. CoreEditorUtils.AddAdditionalData<Camera, UniversalAdditionalCameraData>(go);
  11. CoreEditorUtils.AddAdditionalData<Light, UniversalAdditionalLightData>(go);
  12. }
  13. }
  14. }