# \#staticmeshcomponent

**URL:** https://forums.unrealengine.com/tag/staticmeshcomponent/3983.md

[Latest](https://forums.unrealengine.com/latest.md) · [Categories](https://forums.unrealengine.com/categories.md) · [Tags](https://forums.unrealengine.com/tags.md)

---

## [How to access UStaticMesh vertex data with C++ and is it float32?](https://forums.unrealengine.com/t/how-to-access-ustaticmesh-vertex-data-with-c-and-is-it-float32/2096870)

<div class="topic-metadata">

**Author:** [@OctoberIC](https://forums.unrealengine.com/u/OctoberIC)\
**Replies:** 1\
**Last updated:** [October 31, 2024, 11:50pm UTC](https://forums.unrealengine.com/t/how-to-access-ustaticmesh-vertex-data-with-c-and-is-it-float32/2096870 "2024-10-31T23:50:55Z")

</div>

Having recently migrated from Unity, in C# you would very simply write : Vector3 vertices = GameObject.GetComponent().mesh.vertices; To get a reference to the underlying mesh vertices’ positions (float32 Vector3.) In …

---

## [Sleeve option for helicopter targeting system](https://forums.unrealengine.com/t/sleeve-option-for-helicopter-targeting-system/1695418)

<div class="topic-metadata">

**Author:** [@Mal\_Cher1](https://forums.unrealengine.com/u/Mal_Cher1)\
**Replies:** 0\
**Last updated:** [February 17, 2024, 5:49pm UTC](https://forums.unrealengine.com/t/sleeve-option-for-helicopter-targeting-system/1695418 "2024-02-17T17:49:19Z")

</div>

Hi, I’m trying to make a view sleeve (Ground Lock) so that the sensors on the nose of the helicopter “look” at a point in the terrain (just like in the first video). Additionally, I would like it to be possible to chang…

---

## [Errors in my transform blueprints?](https://forums.unrealengine.com/t/errors-in-my-transform-blueprints/1582182)

<div class="topic-metadata">

**Author:** [@THUND3RCALL999](https://forums.unrealengine.com/u/THUND3RCALL999)\
**Replies:** 1\
**Last updated:** [January 2, 2024, 4:32pm UTC](https://forums.unrealengine.com/t/errors-in-my-transform-blueprints/1582182 "2024-01-02T16:32:39Z")

</div>

I am working on a vrproject that involves a disc bouncing in an enclosed room. I need the disc to bounce back to the player after the third wall bounce. I have the integer variable function set up correct I think. But it…

---

## [Static mesh component no collision in UE5.1](https://forums.unrealengine.com/t/static-mesh-component-no-collision-in-ue5-1/954969)

<div class="topic-metadata">

**Author:** [@sshiny](https://forums.unrealengine.com/u/sshiny)\
**Replies:** 2\
**Last updated:** [April 15, 2023, 7:17am UTC](https://forums.unrealengine.com/t/static-mesh-component-no-collision-in-ue5-1/954969 "2023-04-15T07:17:37Z")

</div>

Hi, I add a sm component to third person BP , the sm collision will not work any more , if i put it in level , it will work , the sm all have simple collision and i had set block all

---

## [How to stop my cubes from flipping over?](https://forums.unrealengine.com/t/how-to-stop-my-cubes-from-flipping-over/471731)

<div class="topic-metadata">

**Author:** [@TheDragonNidhogg](https://forums.unrealengine.com/u/TheDragonNidhogg)\
**Replies:** 4\
**Last updated:** [April 8, 2021, 9:33pm UTC](https://forums.unrealengine.com/t/how-to-stop-my-cubes-from-flipping-over/471731 "2021-04-08T21:33:35Z")

</div>

I am trying to make a conveyor belt for a VR game. I need it to push objects down the belt, while allow them to be picked up by the player and possibly placed on top of each other. The current system works but it causes …

---

## [Removing and added static mesh component](https://forums.unrealengine.com/t/removing-and-added-static-mesh-component/480669)

<div class="topic-metadata">

**Author:** [@nmad2792](https://forums.unrealengine.com/u/nmad2792)\
**Replies:** 10\
**Last updated:** [March 22, 2021, 10:45pm UTC](https://forums.unrealengine.com/t/removing-and-added-static-mesh-component/480669 "2021-03-22T22:45:06Z")

</div>

Hey there, Im having a real hard time with placing static meshes with a widget menu. Using “set static mesh component” shows my mesh horribly lit I"ll add a picture of how they look. Any way, creating a custom event wh…

---

## [Intentionally setting StaticMeshComponent's mesh to null doesn't affect replicated clients](https://forums.unrealengine.com/t/intentionally-setting-staticmeshcomponents-mesh-to-null-doesnt-affect-replicated-clients/320050)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_f778e888](https://forums.unrealengine.com/u/anonymous_user_f778e888)\
**Replies:** 3\
**Last updated:** [March 3, 2021, 10:08pm UTC](https://forums.unrealengine.com/t/intentionally-setting-staticmeshcomponents-mesh-to-null-doesnt-affect-replicated-clients/320050 "2021-03-03T22:08:05Z")

</div>

Setting the mesh to null on the server works, but when the value is replicated to clients it gets ignored. The problem is that OnRep\_StaticMesh() sets StaticMesh to NULL before it calls SetStaticMesh(NewStaticMesh). In…

---

## [How should i add a 'Material Switcher Track' to Sequencer from c++ code?](https://forums.unrealengine.com/t/how-should-i-add-a-material-switcher-track-to-sequencer-from-c-code/477588)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_200fdff0](https://forums.unrealengine.com/u/anonymous_user_200fdff0)\
**Replies:** 1\
**Last updated:** [January 30, 2021, 9:15pm UTC](https://forums.unrealengine.com/t/how-should-i-add-a-material-switcher-track-to-sequencer-from-c-code/477588 "2021-01-30T21:15:51Z")

</div>

What type of Tracks in Sequencer should i look for if i want to add a ‘Material Switcher’ track from code. I’ve tried with UMovieSceneIntegerTrack track for material index property but thats not it, also basic UMovieScen…

---

## [BuildFromStaticMeshDescriptions crashes](https://forums.unrealengine.com/t/buildfromstaticmeshdescriptions-crashes/466648)

<div class="topic-metadata">

**Author:** [@lucas92](https://forums.unrealengine.com/u/lucas92)\
**Replies:** 0\
**Last updated:** [June 12, 2020, 9:45pm UTC](https://forums.unrealengine.com/t/buildfromstaticmeshdescriptions-crashes/466648 "2020-06-12T21:45:57Z")

</div>

I have this code: UStaticMesh\* mesh = staticMeshComponent-\>GetStaticMesh(); meshDescription = mesh-\>CreateStaticMeshDescription(); //generate the tiles uint32 numTiles = sizeX \* sizeY; uint32 x = 0, y = 0; /\*for …

---

## [Impossible to edit some properties if I create StaticMesh in C++](https://forums.unrealengine.com/t/impossible-to-edit-some-properties-if-i-create-staticmesh-in-c/462539)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_b1499ca2](https://forums.unrealengine.com/u/anonymous_user_b1499ca2)\
**Replies:** 2\
**Last updated:** [March 31, 2020, 10:02pm UTC](https://forums.unrealengine.com/t/impossible-to-edit-some-properties-if-i-create-staticmesh-in-c/462539 "2020-03-31T22:02:42Z")

</div>

I have created 2 spheres, each of which has its own radius to detect collision, but only one of them can work(because of auto weld, which i have read in the answer hub). So I need to change this property but it is imposs…

---

## [Blueprint: Inerit from StaticMeshComponent](https://forums.unrealengine.com/t/blueprint-inerit-from-staticmeshcomponent/376263)

<div class="topic-metadata">

**Author:** [@larsgroh](https://forums.unrealengine.com/u/larsgroh)\
**Replies:** 1\
**Last updated:** [August 10, 2019, 3:37pm UTC](https://forums.unrealengine.com/t/blueprint-inerit-from-staticmeshcomponent/376263 "2019-08-10T15:37:29Z")

</div>

Hi, I need a more special type of StaticMeshComponent. But it seems I may not inherit from StaticMeshComponent. Only from the more special types e.g. InstancedStaticMeshComponent or the more general types e.g. SceneCom…

---

## [How do I detect collision between a static mesh and actor?](https://forums.unrealengine.com/t/how-do-i-detect-collision-between-a-static-mesh-and-actor/387873)

<div class="topic-metadata">

**Author:** [@Falconeyi](https://forums.unrealengine.com/u/Falconeyi)\
**Replies:** 3\
**Last updated:** [April 10, 2019, 1:07pm UTC](https://forums.unrealengine.com/t/how-do-i-detect-collision-between-a-static-mesh-and-actor/387873 "2019-04-10T13:07:58Z")

</div>

Hi, I have a static mesh component (a cone) on my player character. How do I get other actors to detect this static mesh when my static mesh bumps into them?

---

## [StaticMeshComponent, material replication](https://forums.unrealengine.com/t/staticmeshcomponent-material-replication/443787)

<div class="topic-metadata">

**Author:** [@SvarogZ](https://forums.unrealengine.com/u/SvarogZ)\
**Replies:** 0\
**Last updated:** [February 20, 2019, 6:31pm UTC](https://forums.unrealengine.com/t/staticmeshcomponent-material-replication/443787 "2019-02-20T18:31:59Z")

</div>

New StaticMeshComponent is created dynamically during the game. For the Server, everything works perfectly. However, for the Client, everything replicates (scale, location, rotation) excluding the material. If I chang…

---

## [Difficulty getting FBox from StaticMeshComponent](https://forums.unrealengine.com/t/difficulty-getting-fbox-from-staticmeshcomponent/440831)

<div class="topic-metadata">

**Author:** [@kevincvanhorn](https://forums.unrealengine.com/u/kevincvanhorn)\
**Replies:** 1\
**Last updated:** [January 9, 2019, 5:10am UTC](https://forums.unrealengine.com/t/difficulty-getting-fbox-from-staticmeshcomponent/440831 "2019-01-09T05:10:55Z")

</div>

Hello! I’m looking for a way to calculate a tight FBox around a StaticMeshComponent that rotates with the component, keeping the same volume and orientation.

---

## [How to get inherited Mesh Component to show in BP editor?](https://forums.unrealengine.com/t/how-to-get-inherited-mesh-component-to-show-in-bp-editor/437725)

<div class="topic-metadata">

**Author:** [@Piccadi11y](https://forums.unrealengine.com/u/Piccadi11y)\
**Replies:** 6\
**Last updated:** [November 16, 2018, 9:20am UTC](https://forums.unrealengine.com/t/how-to-get-inherited-mesh-component-to-show-in-bp-editor/437725 "2018-11-16T09:20:55Z")

</div>

I’m sure this’ll end up with a simple answer, but I cannot for the life of me figure it out. In the base C++ class of which the Blueprint is based on, I have a Scene Component as its root and a Static Mesh Component for …

---

## [Preview Meshes for C++ Actors](https://forums.unrealengine.com/t/preview-meshes-for-c-actors/428032)

<div class="topic-metadata">

**Author:** [@Steferich](https://forums.unrealengine.com/u/Steferich)\
**Replies:** 0\
**Last updated:** [June 24, 2018, 6:20pm UTC](https://forums.unrealengine.com/t/preview-meshes-for-c-actors/428032 "2018-06-24T18:20:33Z")

</div>

Hello! I’m struggling abit with setting a preview-mesh using C++. I’ve created an actor class and a UStaticMeshComponent called “CurrentMesh” within it which I want to assign a static mesh to. I have also made a TArray …

---

## [Cant add StaticMeshComponent derived class to BP actor](https://forums.unrealengine.com/t/cant-add-staticmeshcomponent-derived-class-to-bp-actor/425875)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_0358ed391](https://forums.unrealengine.com/u/anonymous_user_0358ed391)\
**Replies:** 6\
**Last updated:** [May 25, 2018, 6:15pm UTC](https://forums.unrealengine.com/t/cant-add-staticmeshcomponent-derived-class-to-bp-actor/425875 "2018-05-25T18:15:24Z")

</div>

I have created a custom class that derives from “UStaticMeshComponent” and adds some “controll”-features and a MaterialInstance (Its a light, that can be turned on and off) Everything compiles If i try to move the cla…

---

## [Why Actor with physics is not synchronized through the network but StaticMeshActor is perfectly synchronized?](https://forums.unrealengine.com/t/why-actor-with-physics-is-not-synchronized-through-the-network-but-staticmeshactor-is-perfectly-synchronized/423169)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_499018a11](https://forums.unrealengine.com/u/anonymous_user_499018a11)\
**Replies:** 1\
**Last updated:** [April 25, 2018, 2:06pm UTC](https://forums.unrealengine.com/t/why-actor-with-physics-is-not-synchronized-through-the-network-but-staticmeshactor-is-perfectly-synchronized/423169 "2018-04-25T14:06:13Z")

</div>

Hi, i have been doing some tests with physics and replication and i found some interesting behaviour with Actor and StaticMeshActor. If i place an Actor with Physics simulation box, Replication box and Replication Movem…

---

## [StaticMeshComponent parent for BPclass](https://forums.unrealengine.com/t/staticmeshcomponent-parent-for-bpclass/341783)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_aa6725fb](https://forums.unrealengine.com/u/anonymous_user_aa6725fb)\
**Replies:** 1\
**Last updated:** [September 20, 2017, 11:30am UTC](https://forums.unrealengine.com/t/staticmeshcomponent-parent-for-bpclass/341783 "2017-09-20T11:30:23Z")

</div>

Why is it not possible to derive from StaticMeshComponent (i.e. make a BP Class that has StaticMeshComponent as a parent), but it is possible to derive from InstancedStaticMeshComponent?

---

## [\[C++\] Possible Bug? Inherited UStaticMeshComponent looses Mesh on Blueprint Compile when attached through different class then the Actor itself](https://forums.unrealengine.com/t/c-possible-bug-inherited-ustaticmeshcomponent-looses-mesh-on-blueprint-compile-when-attached-through-different-class-then-the-actor-itself/389330)

<div class="topic-metadata">

**Author:** [@ZABBA\_THE\_HUT](https://forums.unrealengine.com/u/ZABBA_THE_HUT)\
**Replies:** 2\
**Last updated:** [May 29, 2017, 6:57am UTC](https://forums.unrealengine.com/t/c-possible-bug-inherited-ustaticmeshcomponent-looses-mesh-on-blueprint-compile-when-attached-through-different-class-then-the-actor-itself/389330 "2017-05-29T06:57:41Z")

</div>

Hey everybody, I have a problem with a disappearing mesh: I created a simple Actor: MyActor.h UCLASS() class VRBASEFRAMEWORK\_API AMyActor : public AActor { GENERATED\_BODY() public: // Sets default values for thi…

---

## [StaticMeshComponent OnClicked doesn't work](https://forums.unrealengine.com/t/staticmeshcomponent-onclicked-doesnt-work/360336)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_9e83908a](https://forums.unrealengine.com/u/anonymous_user_9e83908a)\
**Replies:** 4\
**Last updated:** [March 28, 2017, 2:59am UTC](https://forums.unrealengine.com/t/staticmeshcomponent-onclicked-doesnt-work/360336 "2017-03-28T02:59:47Z")

</div>

When I bind an event to the functions onbegincursorover onendcursorover or onclicked from a StaticMeshComponent, they won’t execute since 4.12

---

## [AddInstance() not adding the correct StaticMesh](https://forums.unrealengine.com/t/addinstance-not-adding-the-correct-staticmesh/387474)

<div class="topic-metadata">

**Author:** [@nthn911](https://forums.unrealengine.com/u/nthn911)\
**Replies:** 0\
**Last updated:** [March 10, 2017, 12:44am UTC](https://forums.unrealengine.com/t/addinstance-not-adding-the-correct-staticmesh/387474 "2017-03-10T00:44:58Z")

</div>

Hi. This is my first project using C++ and I’m really having a lot of trouble with Instanced Static Mesh Components. I have the following code: Mesh = CreateDefaultSubobject\<UStaticMesh\>(TEXT("Mesh")); static Construct…

---

## [Alter physics settings of staticMeshComponent in blueprint](https://forums.unrealengine.com/t/alter-physics-settings-of-staticmeshcomponent-in-blueprint/379099)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_367c2bff](https://forums.unrealengine.com/u/anonymous_user_367c2bff)\
**Replies:** 1\
**Last updated:** [December 20, 2016, 7:41pm UTC](https://forums.unrealengine.com/t/alter-physics-settings-of-staticmeshcomponent-in-blueprint/379099 "2016-12-20T19:41:17Z")

</div>

Hello there! I’ve just learned how to create a C++ actor class with static mesh component to which I can drag&drop my mesh from blueprint. Now it seems that I can’t find a way to access the same physics tab on this comp…

---

## [Adding text to static mesh component surface](https://forums.unrealengine.com/t/adding-text-to-static-mesh-component-surface/374193)

<div class="topic-metadata">

**Author:** [@Disc.ST](https://forums.unrealengine.com/u/Disc.ST)\
**Replies:** 2\
**Last updated:** [October 23, 2016, 4:58am UTC](https://forums.unrealengine.com/t/adding-text-to-static-mesh-component-surface/374193 "2016-10-23T04:58:09Z")

</div>

I want to achieve something similar to this where I can add text to the surface of a static mesh: I would like this to be done using a text variable, If I could open up an option to format the text as i go …

---

## [(動画チュートリアル関連) DefaultSceneRoot は何のためにあるのか？](https://forums.unrealengine.com/t/defaultsceneroot/366953)

<div class="topic-metadata">

**Author:** [@ymars](https://forums.unrealengine.com/u/ymars)\
**Replies:** 1\
**Last updated:** [August 12, 2016, 12:14pm UTC](https://forums.unrealengine.com/t/defaultsceneroot/366953 "2016-08-12T12:14:49Z")

</div>

空のアクタ (Empty Actor) をレベルにドラッグしてから、ブループリント化すると、 DefaultSceneRoot というのができます。 これは何のためにあるのでしょうか？ なお、スタティック メッシュをレベルに配置してから、ブループリント化すると、 この DefaultSceneRoot はできません。

---

## [Trouble accessing member LODResources from RenderData](https://forums.unrealengine.com/t/trouble-accessing-member-lodresources-from-renderdata/351769)

<div class="topic-metadata">

**Author:** [@synthure](https://forums.unrealengine.com/u/synthure)\
**Replies:** 1\
**Last updated:** [May 2, 2016, 11:32am UTC](https://forums.unrealengine.com/t/trouble-accessing-member-lodresources-from-renderdata/351769 "2016-05-02T11:32:58Z")

</div>

Im trying to access the vertex buffer from a static mesh component. this works just fine FStaticMeshRenderData\* renderData = StaticMeshComponent-\>StaticMesh-\>RenderData; but when i attempt to access anything from the …

---

## [Add Instance in blueprint, how do I add mesh?](https://forums.unrealengine.com/t/add-instance-in-blueprint-how-do-i-add-mesh/309543)

<div class="topic-metadata">

**Author:** [@echoform](https://forums.unrealengine.com/u/echoform)\
**Replies:** 2\
**Last updated:** [April 26, 2016, 8:01am UTC](https://forums.unrealengine.com/t/add-instance-in-blueprint-how-do-i-add-mesh/309543 "2016-04-26T08:01:41Z")

</div>

I tried StaticMesh / StaticMeshComponent to inset into Target but it does not work. Below screen capture is somebody else’s graph with successfully having the Static mesh “HelperISMesh”. How do I register that mesh to…

---

## [Custom C++ PAWN can't edit physics in editor](https://forums.unrealengine.com/t/custom-c-pawn-cant-edit-physics-in-editor/322148)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_c6c5dc0d](https://forums.unrealengine.com/u/anonymous_user_c6c5dc0d)\
**Replies:** 6\
**Last updated:** [November 29, 2015, 7:28pm UTC](https://forums.unrealengine.com/t/custom-c-pawn-cant-edit-physics-in-editor/322148 "2015-11-29T19:28:47Z")

</div>

I have a custom Pawn whose header file is this: UCLASS() class ORLANDO\_API AC\_MyPawn : public APawn { GENERATED\_BODY() public: UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "MyPawn") UStaticMeshComponent \* …

---

## [How can i acces index buffer data of staticmesh at packed game?](https://forums.unrealengine.com/t/how-can-i-acces-index-buffer-data-of-staticmesh-at-packed-game/334298)

<div class="topic-metadata">

**Author:** [@user\_5a6bfd32b1a7349a5f1413349459e191f21a52a9f5b6c819e33abd](https://forums.unrealengine.com/u/user_5a6bfd32b1a7349a5f1413349459e191f21a52a9f5b6c819e33abd)\
**Replies:** 0\
**Last updated:** [October 5, 2015, 10:53am UTC](https://forums.unrealengine.com/t/how-can-i-acces-index-buffer-data-of-staticmesh-at-packed-game/334298 "2015-10-05T10:53:17Z")

</div>

Hi! guys. I want to acces vertex and index data of staticmesh at packed game. Now i accesed vertex data by “Getting Transformed Vertex Positions” of Rama, but i can’t access index data. I tried to access by using “Mes…

---

## [Does StaticMeshComponents added to an actor at runtime have collisions?](https://forums.unrealengine.com/t/does-staticmeshcomponents-added-to-an-actor-at-runtime-have-collisions/327586)

<div class="topic-metadata">

**Author:** [@Hayaweh](https://forums.unrealengine.com/u/Hayaweh)\
**Replies:** 4\
**Last updated:** [August 6, 2015, 10:55pm UTC](https://forums.unrealengine.com/t/does-staticmeshcomponents-added-to-an-actor-at-runtime-have-collisions/327586 "2015-08-06T22:55:46Z")

</div>

Hi, I am hitting an issue where I am dynamically adding some staticMeshComponent to an actor during runtime. So the new added StaticMeshComponent is set to have some physics collisions. However. It seems like when it s…

[Next page](https://forums.unrealengine.com/tag/staticmeshcomponent/3983.md?match_all_tags=true&page=1&tags%5B%5D=staticmeshcomponent)
