Axiom.Core.PrefabFactory.Create C# (CSharp) Method

Create() public static method

If the given mesh has a known prefab resource name (e.g "Prefab_Plane") then this prefab will be created as a submesh of the given mesh.
public static Create ( Axiom.Core.Mesh mesh ) : bool
mesh Axiom.Core.Mesh The mesh that the potential prefab will be created in.
return bool
		public static bool Create( Mesh mesh )
		{
			switch ( mesh.Name )
			{
				case "Prefab_Plane":
					_createPlane( mesh );
					return true;
				case "Prefab_Cube":
					_createCube( mesh );
					return true;
				case "Prefab_Sphere":
					_createSphere( mesh );
					return true;
			}

			return false;
		}