C# 클래스 Axiom.Core.PrefabFactory

A factory class that can create various mesh prefabs.
This class is used by MeshManager to offload the loading of various prefab types to a central location.
파일 보기 프로젝트 열기: WolfgangSt/axiom

공개 메소드들

메소드 설명
Create ( Axiom.Core.Mesh mesh ) : bool

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.

비공개 메소드들

메소드 설명
_createCube ( Axiom.Core.Mesh mesh ) : void

Creates a 100x100x100 cube as a submesh of the given mesh

_createPlane ( Axiom.Core.Mesh mesh ) : void

Creates a plane as a submesh of the given mesh

_createSphere ( Axiom.Core.Mesh mesh ) : void

Creates a sphere with a diameter of 100 units as a submesh of the given mesh

메소드 상세

Create() 공개 정적인 메소드

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.
리턴 bool