Class StaticMeshComponent
StaticMeshComponent is used to create an instance of a UStaticMesh.
Inheritance
System.Object
StaticMeshComponent
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: UE4DotNet.dll
Syntax
public class StaticMeshComponent : MeshComponent
Properties
|
Improve this Doc
View Source
bCastDistanceFieldIndirectShadow
Declaration
public bool bCastDistanceFieldIndirectShadow { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
bCustomOverrideVertexColorPerLOD
Declaration
public bool bCustomOverrideVertexColorPerLOD { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
bDisallowMeshPaintPerInstance
Declaration
public bool bDisallowMeshPaintPerInstance { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
bDisplayVertexColors
Declaration
public bool bDisplayVertexColors { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
bForceNavigationObstacle
Declaration
public bool bForceNavigationObstacle { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
bIgnoreInstanceForTextureStreaming
Declaration
public bool bIgnoreInstanceForTextureStreaming { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
bOverrideDistanceFieldSelfShadowBias
Declaration
public bool bOverrideDistanceFieldSelfShadowBias { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
bOverrideLightMapRes
Declaration
public bool bOverrideLightMapRes { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
bOverrideMinLOD
Declaration
public bool bOverrideMinLOD { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
bOverrideNavigationExport
Declaration
public bool bOverrideNavigationExport { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
bOverrideWireframeColor
Declaration
public bool bOverrideWireframeColor { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
bReverseCulling
Declaration
public bool bReverseCulling { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
bUseDefaultCollision
Declaration
public bool bUseDefaultCollision { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
bUseSubDivisions
Declaration
public bool bUseSubDivisions { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
DefaultObject
Get UE4 Default Object for this Class
Declaration
public static StaticMeshComponent DefaultObject { get; }
Property Value
|
Improve this Doc
View Source
DistanceFieldIndirectShadowMinVisibility
Controls how dark the dynamic indirect shadow can be.
Declaration
public float DistanceFieldIndirectShadowMinVisibility { get; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
DistanceFieldSelfShadowBias
Useful for reducing self shadowing from distance field methods when using world position offset to animate the mesh's vertices.
Declaration
public float DistanceFieldSelfShadowBias { get; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
ForcedLodModel
If 0, auto-select LOD level. if >0, force to (ForcedLodModel-1).
Declaration
public int ForcedLodModel { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
LightmassSettings
The Lightmass settings for this object.
Declaration
public LightmassPrimitiveSettings LightmassSettings { get; set; }
Property Value
|
Improve this Doc
View Source
MaterialIndexPreview
Index of the material to preview. If set to INDEX_NONE, all section will be rendered. Used for isolating in Static Mesh Tool *
Declaration
public int MaterialIndexPreview { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
MinLOD
Specifies the smallest LOD that will be used for this component.
Declaration
public int MinLOD { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
OverriddenLightMapRes
Light map resolution to use on this component, used if bOverrideLightMapRes is true and there is a valid StaticMesh.
Declaration
public int OverriddenLightMapRes { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
PreviousLODLevel
LOD that was desired for rendering this StaticMeshComponent last frame.
Declaration
public int PreviousLODLevel { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
SectionIndexPreview
Index of the section to preview. If set to INDEX_NONE, all section will be rendered. Used for isolating in Static Mesh Tool *
Declaration
public int SectionIndexPreview { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
SelectedEditorMaterial
The material currently selected in the Editor. Used for highlighting
Declaration
public int SelectedEditorMaterial { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
SelectedEditorSection
The section currently selected in the Editor. Used for highlighting
Declaration
public int SelectedEditorSection { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
StaticClass
Declaration
public static Class StaticClass { get; }
Property Value
|
Improve this Doc
View Source
StaticMesh
Declaration
public StaticMesh StaticMesh { get; }
Property Value
|
Improve this Doc
View Source
StaticMeshImportVersion
- The import version of the static mesh when it was assign this is update when:
-
- The user assign a new staticmesh to the component
-
- The component is serialize (IsSaving)
-
- Default value is BeforeImportStaticMeshVersionWasAdded
- If when the component get load (PostLoad) the version of the attach staticmesh is newer
- then this value, we will remap the material override because the order of the materials list
- in the staticmesh can be changed.
Declaration
public int StaticMeshImportVersion { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
StreamingDistanceMultiplier
Allows adjusting the desired resolution of streaming textures that uses UV 0. 1.0 is the default, whereas a higher value increases the streamed-in resolution.
Declaration
public float StreamingDistanceMultiplier { get; set; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
SubDivisionStepSize
Subdivision step size for static vertex lighting.
Declaration
public int SubDivisionStepSize { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
WireframeColorOverride
Wireframe color to use if bOverrideWireframeColor is true
Declaration
public Color WireframeColorOverride { get; }
Property Value
Methods
|
Improve this Doc
View Source
GetLocalBounds()
Declaration
public (Vector, Vector) GetLocalBounds()
Returns
|
Improve this Doc
View Source
New(UObject, Name)
Spawn an object of this class
Declaration
public static StaticMeshComponent New(UObject obj = null, Name name = default(Name))
Parameters
Returns
|
Improve this Doc
View Source
SetDistanceFieldSelfShadowBias(Single)
Sets the component's DistanceFieldSelfShadowBias. bOverrideDistanceFieldSelfShadowBias must be enabled for this to have an effect.
Declaration
public void SetDistanceFieldSelfShadowBias(float NewValue)
Parameters
Type |
Name |
Description |
System.Single |
NewValue |
|
|
Improve this Doc
View Source
SetForcedLodModel(Int32)
Declaration
public void SetForcedLodModel(int NewForcedLodModel)
Parameters
Type |
Name |
Description |
System.Int32 |
NewForcedLodModel |
|
|
Improve this Doc
View Source
SetReverseCulling(Boolean)
Set forced reverse culling
Declaration
public void SetReverseCulling(bool ReverseCulling)
Parameters
Type |
Name |
Description |
System.Boolean |
ReverseCulling |
|
|
Improve this Doc
View Source
SetStaticMesh(StaticMesh)
Change the StaticMesh used by this instance.
Declaration
public bool SetStaticMesh(StaticMesh NewMesh)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Operators
|
Improve this Doc
View Source
Implicit(IntPtr to StaticMeshComponent)
Convert from IntPtr to UObject
Declaration
public static implicit operator StaticMeshComponent(IntPtr p)
Parameters
Type |
Name |
Description |
System.IntPtr |
p |
|
Returns