Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by cedhikari7 · Jun 13, 2014 at 10:53 AM · u3dxt

SocialXT.Share with more customization

Hello,

I have two questions, I was wondering how to : - remove Airdrop if possible - position popover where I want (it seems it is possible from what I see in the SocialXT.Share function but I don't understand some vars from DLL wrap so if you can provide this function so that we can create one adapted to our need, it will help)

Thank you, Cédric

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Martin_Gonzalez · Jun 09, 2015 at 06:25 AM 0
Share

Is there a way to add a subject for mail but not using the Send$$anonymous$$ail. Using SocialXT.Share and there add a subject that can be used in mail, and others socials buttons?

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by u3dxt · Jun 13, 2014 at 05:07 PM

Hi, SocialXT.Share() has as second argument for excluded types. To exclude AirDrop, you can all it like this:

 SocialXT.Share(
     new object[] { "Hello" },
     new string[] { "com.apple.UIKit.activity.AirDrop" }
 );

If you want to move the popover, you can take a look at our source at: https://github.com/vitapoly/u3dxt/blob/master/src/highlevel/social/Social/SocialXT.cs. You only need the Share() and _activityViewCompleted() methods. Inside the Share() method, you can change the popover rect's size and position.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Tomo Games · Oct 22, 2014 at 09:26 PM

Sorry I wasn't able to create a New TAG U3DXT as I don't have a 50 reputation whatever that means.

Is there a way to include a subject heading in SocialXT.Share?

UPDATE - note could still use your help about my image resolution issues thanks.

I figured out how to include Subject field in SocialXT. When I get a chance I'll see if I can post it to github.

In short it's something along the lines of:

         if (excludedActivityTypes != null)
             vc.excludedActivityTypes = excludedActivityTypes;
 
         if (subjectForActivityType != null)
             vc.SetValueForKey(subjectForActivityType,"subject");

Where subjectForActivityType is = "My subject heading"

Also I would like to include a picture of my game icon when using the Activity Sheet (SocialXT.Share) but the graphic appears blown up and blurry when posting to Facebook or Twitter. If I choose to make the post a message or email the icon appears as the proper size. So is there a specific image resolution / format that should be used for proper image rescaling? I heard 111 x 74 might work but the quality looks too poor. If you go too large the image dominates the screen for emails and sms messages. Ideally I would like the icon to link back to my App in the store.

  public void onShare(GameObject sender)
  {
      SocialXT.Share(new object[] {
          "I just beat level "+currentlevel+" in My Video Game! "+score+" points."),
          https://itunes.apple.com/us/app/my-video-game/id555333111?mt=8&uo=4",
          _logo 
      }
      new string[] { UIActivity.TypeAssignToContact, UIActivity.TypeCopyToPasteboard, UIActivity.TypePrint, UIActivity.TypeSaveToCameraRoll,"com.apple.UIKit.activity.AddToReadingList","com.apple.UIKit.activity.AirDrop"  });
  }


Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

U3DXT Init failed, everything is setup 1 Answer

Using MediaExporter to save to MP3 1 Answer

U3DXT IAP - prevent pending transactions from starting download after Init() 1 Answer

u3dxt causing failed validation 2 Answers

Has U3DXT been abandoned? 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges