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
1
Question by m261087 · Aug 13, 2013 at 11:00 AM · level editormodding

Letting players write code.

Hey people.

I have this dream project that I would like to work towards, but I want to know if its doable in unity.

I want to make an RPG game, where the player can make their own scenarios. So I would like to make a stand-alone toolset/program where the player could write code, defining the behavior of the "world". If you know Neverwinter Nights, its pretty much that concept, except I want to give the players the ability to change pretty much everything.

Anyway, is it possible to make an in-game script editor? Or perhaps let players use an external editor to write and compile C# or JavaScript files and then use them in-game? I know there are security risks that has to be addressed, but wouldn't it be possible to make the game run in a sandbox environment, that can only do certain things?

I hope it isn't too unclear, but if anyone has any insight or experience with this in Unity, I would be really happy.

Perhaps making the game in unity, and then the toolset in Java with something like jMonkey or something equivalent in C#?

Anyway, I'd love your input on wether this is possible or not?

/Morten

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 Joyrider · Aug 13, 2013 at 11:12 AM 0
Share

I don't think so. So could create some kind of scripting language that you could interpret to do some actions. But all scripts in Unity are compiled at build time (so your standalone only has assemblies), and Unity requires that all scripts be in the player (importing them through assetbundles is not possible).

So have your users freely write javascript or C# is imo not at all one of your options, not ingame. Unless you call specific functions in external DLL (that the user can modify).

1 Reply

· Add your reply
  • Sort: 
avatar image
3
Best Answer Wiki

Answer by Linus · Aug 13, 2013 at 11:09 AM

Yes you can

http://answers.unity3d.com/questions/16546/creating-a-unity-moddable-game.html

http://forum.unity3d.com/threads/8971-Is-it-possible-to-make-my-game-moddable

http://forum.unity3d.com/threads/112701-Modding-and-Unity-Possible

http://www.google.com/search?q=unity+moddable+games

Comment
Add comment · Show 1 · 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 m261087 · Aug 13, 2013 at 11:19 AM 0
Share

Thanks!.. Seemed I searched for the wrong things. Sorry about that, but thanks for the help! :)

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

17 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

User added content 0 Answers

Selection box 0 Answers

2D level Editor in game creation 0 Answers

Simple modding via importation of text files and jpgs 2 Answers

unity not loading my blender models textures? 0 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