x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

When to use Class, when to use Reference?

Look at my Structure representing a weapon

alt text

My weapon has a sound and a mesh. Even though I never instantiate a mesh or a sound, I need to use a reference. The weapons also fire a projectile. Why can't I use a Reference here? It makes sense that I need to use a class. But why do I need a reference for a sound/Mesh?

Product Version: Not Selected
Tags:
unbenannt.png (67.4 kB)
more ▼

asked Feb 25 '16 at 07:14 PM in Using UE4

avatar image

Raildex_
512 18 38 62

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

assets are different from actors. meshes, textures, and sounds are assets that are imported into the engine, while projectiles are actors that need to be spawned from a class. assets are not spawned, they are just loaded into memory whenever you spawn an actor that contains a component that references the asset.

assets are just data. unlike a projectile actor, they don't have movement components or event graphs, and they cant be used on their own. they need to be referenced by a component in order to exist.

more ▼

answered Feb 25 '16 at 10:14 PM

avatar image

ScottSpadea
9.6k 320 205 450

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question