Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 ThmYgx · Oct 15, 2016 at 08:23 AM · plugincustom editordevelopmentpayment

Can I limit the number of times a feature in Unity Plugin can run?

It is about a Unity Plugin I am developing.

I am thinking of this scenario:

  • set a limitation to the number of times a feature in the Unity Plugin can run;

  • once the pre-set limitation is reached, the user will not be able to use the feature in question, but can still use all other features in the Unity Plugin;

  • to get the feature in question afterwards, the user will have to go online and make a payment.

Does anyone know if Unity will allow this scenario?

Thank you.

Comment
Add comment
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

2 Replies

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

Answer by tanoshimi · Oct 15, 2016 at 08:36 AM

Well, it's technically possible but I haven't heard of it done before, and I wouldn't recommend it. How were you thinking about recording the number of uses? Anything stored client-side - in the registry or some local data file - would be pretty easy to break. And anything stored server-side would require an active internet connection every time the plugin was used, and might put some purchasers off (personally, I wouldn't want a third-party asset that pinged back unknown information from my Unity project to a server I had no idea who controlled).

TBH, I would recommend taking the route most asset developers follow, which is either to release a "lite" version that has some features disabled, or else simply produce a really good web demo or tutorial video that demonstrates the functionality of the plugin rather than anything time/use- limited.

Comment
Add comment · Show 3 · 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 pcdrive · Oct 15, 2016 at 08:42 AM 0
Share

I assumed the counter cause from what @ThmYgx described sounds like a cellphone app which is rarely broken. but even if not there are some ways to hide it anyway.

Anyway what you say is right and totally the best choice.

avatar image tanoshimi pcdrive · Oct 15, 2016 at 12:23 PM 0
Share

I think we have interpreted the question differently - I'm assu$$anonymous$$g @ThmYgx meant that the plugin was intended to run in the Unity Editor - some kind of editor extension, for example. Therefore the target platform itself is irrelevant - it's the developer who is limited by the number of feature uses, not the end users. But having re-read the question, I can see that maybe your interpretation is right too. Perhaps we need a bit more info from the OP....

avatar image ThmYgx tanoshimi · Oct 15, 2016 at 08:12 PM 0
Share

Hi Tanoshimi,

Thank you for your replies.

Yes, I meant that the plugin would be a Unity Editor extension. Its users will be 3D professionals like ourselves, not the end-users.

Are your recommendation still valid?

Thank you

avatar image
0

Answer by pcdrive · Oct 15, 2016 at 08:32 AM

Hi @ThmYgx,

I dont really understand how plugins work, but i think you can do it with a couunter maybe. For example you make a counter integer variable and give it a 3 value. and every use of the feature you decrease it, and when its 0 the user cannot use it anymore. You can save the vaqriable so it will not be 3 again when you restart the game. The only problem with this is to protect it. so you should save it in a safe way.

thats the only think i can think of related to your question,

Good luck finding the solution =)

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

What can we do to learn : Create Payment in MyGame 1 Answer

Writing custom editors 0 Answers

Unibill in-app purchase plugin, any experience? 3 Answers

Stream bytes from unmanaged C++ to Unity ? 1 Answer

YouTube Player Fragment in Plugin 1 Answer


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