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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

EyeDropper from scene isnt working

I made a UPROPERTY and added the Specifiers and Metadata to make it Class picker. It compiles fine no error and the search has the 2 spot lights in the world inside the editor and they are added when i click on it but when i try to use the Eyedropper Class picker it doesnt work. Am i missing something?alt text

 UPROPERTY(EditAnywhere, Category = "SpotLight", meta = (AllowedClasses = ASpotLight, ExactClass = true))
 ASpotLight* SpotlightPicker;


Product Version: UE 4.18
Tags:
more ▼

asked Mar 05 '18 at 07:41 AM in C++ Programming

avatar image

Shadowjonny
46 3 6 10

avatar image AmphDev Mar 05 '18 at 08:14 AM

Hello!

Did you tried without this? ExactClass = true and i think you should add BlueprintReadWrite too after EditAnywhere

avatar image Shadowjonny Mar 06 '18 at 02:37 AM

Just tried it still doesnt work. :( Does it work for anyone else?

avatar image HollingsworthDan Mar 06 '18 at 03:50 AM

Dont be shy. Show us whats going on.

You have a Class you have created, (Where is the header? where is the CPP? DId you wrap this in a blueprint?)? And you have placed it in the world, (where is the SceneOutliner?)?

Or even better, if you could take a simplified version of the class, the bp, the level, and zip it all up, and upload it. Then I can load it into unreal and see whats going on.

avatar image Shadowjonny Mar 07 '18 at 01:25 AM

there isnt really much at all im just redoing a blueprint actor i did inside visual studio for learning purposes. The UPROPERTY is inside the header file in scope of the Generated_Body like it should be.

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

1 answer: sort voted first

Hey.

Your issue is caused by.. one letter. :p

AllowedClasses meta data accepts name of classes without their prefixes. So for ASpotLight you just skip the 'A' etc.

As a side note: in your case you don't even need to use that (same goes for ExactClass). You should be fine with something like this:

 UPROPERTY(EditAnywhere, Category = "SpotLight")
 class ASpotLight* SpotlightPicker; // forward declaration to avoid including SpotLight.h in header file

Cheers!

more ▼

answered Mar 07 '18 at 01:27 PM

avatar image

Atheist91
1.2k 18 23 40

(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