Skip to content

Commit f96c228

Browse files
committed
add namespace
1 parent 0b5bc22 commit f96c228

File tree

8 files changed

+1345
-1323
lines changed

8 files changed

+1345
-1323
lines changed

Editor/ImportContext.cs

Lines changed: 51 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,65 @@
11
using System.IO;
22
using UnityEngine;
33

4-
/// <summary>
5-
/// Carries information for all the assets created during import of a MERF scene.
6-
/// </summary>
7-
public class ImportContext {
4+
namespace MERF.Editor {
85

96
/// <summary>
10-
/// True if we are we currently importing a custom scene,
11-
/// false if it is one of the demo scenes.
7+
/// Carries information for all the assets created during import of a MERF scene.
128
/// </summary>
13-
public bool CustomScene;
9+
public class ImportContext {
1410

15-
/// <summary>
16-
/// The demo scene being imported.
17-
/// </summary>
18-
public MERFScene Scene;
11+
/// <summary>
12+
/// True if we are we currently importing a custom scene,
13+
/// false if it is one of the demo scenes.
14+
/// </summary>
15+
public bool CustomScene;
1916

20-
/// <summary>
21-
/// The path to the source files for custom scene imports.
22-
/// </summary>
23-
public string CustomScenePath;
24-
25-
public string SceneName {
26-
get {
27-
if (CustomScene) {
28-
return new DirectoryInfo(CustomScenePath).Name.ToLower();
29-
} else {
30-
return Scene.LowerCaseName();
31-
}
17+
/// <summary>
18+
/// The demo scene being imported.
19+
/// </summary>
20+
public MERFScene Scene;
3221

33-
}
34-
}
22+
/// <summary>
23+
/// The path to the source files for custom scene imports.
24+
/// </summary>
25+
public string CustomScenePath;
26+
27+
public string SceneName {
28+
get {
29+
if (CustomScene) {
30+
return new DirectoryInfo(CustomScenePath).Name.ToLower();
31+
} else {
32+
return Scene.LowerCaseName();
33+
}
3534

36-
public string SceneNameUpperCase {
37-
get {
38-
if (CustomScene) {
39-
return new DirectoryInfo(CustomScenePath).Name;
40-
} else {
41-
return Scene.Name();
4235
}
36+
}
37+
38+
public string SceneNameUpperCase {
39+
get {
40+
if (CustomScene) {
41+
return new DirectoryInfo(CustomScenePath).Name;
42+
} else {
43+
return Scene.Name();
44+
}
4345

46+
}
4447
}
45-
}
4648

47-
public Texture2DArray PlaneRgbTexture;
48-
public Texture2DArray PlaneDensityTexture;
49-
public Texture2DArray PlaneFeaturesTexture;
50-
public Texture3D[] OccupancyGridTextures;
51-
public Vector4[] OccupancyGridSizes;
52-
public double[] OccupancyVoxelSizes;
53-
public Shader Shader;
54-
public Texture2D WeightsTexZero;
55-
public Texture2D WeightsTexOne;
56-
public Texture2D WeightsTexTwo;
57-
public Material Material;
58-
public Texture3D DensityVolumeTexture;
59-
public Texture3D RGBVolumeTexture;
60-
public Texture3D FeatureVolumeTexture;
61-
public Texture3D AtlasIndexTexture;
62-
}
49+
public Texture2DArray PlaneRgbTexture;
50+
public Texture2DArray PlaneDensityTexture;
51+
public Texture2DArray PlaneFeaturesTexture;
52+
public Texture3D[] OccupancyGridTextures;
53+
public Vector4[] OccupancyGridSizes;
54+
public double[] OccupancyVoxelSizes;
55+
public Shader Shader;
56+
public Texture2D WeightsTexZero;
57+
public Texture2D WeightsTexOne;
58+
public Texture2D WeightsTexTwo;
59+
public Material Material;
60+
public Texture3D DensityVolumeTexture;
61+
public Texture3D RGBVolumeTexture;
62+
public Texture3D FeatureVolumeTexture;
63+
public Texture3D AtlasIndexTexture;
64+
}
65+
}

0 commit comments

Comments
 (0)