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 user-11409 (google) · Apr 11, 2011 at 07:35 AM · c#materials3dsmax

Creating Material in Unity from using data from 3ds Max v-Ray Material Export with a Max script.

How do I create materials in Unity editor? I do Architectural Rendering using V-ray in 3DS Max and I want to put my models into Unity to play around in my Architectural scene BUT when I import my model (using FBX) I get correct material assignment but they are all blank, recreating all my materials inside of Unity is to much work, So I want to script a material Editor inside of the Unity Editor. I can export all my material maps, bump, ect to a TXT doc using max script. How do I using Unity C Sharp Script, edit existing Scene materials and get values from a text file? I know this will only get me so far I will still need to tweak the materials in Unity to get the look Im after but it will save me tons of time! Help!

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Paulius-Liekis · Apr 11, 2011 at 12:47 PM

I would recommend looking into AssetPostprocessor class, especially OnAssingModelMaterial (or something like that). It allows you to assign material or create one on load time. All you ahve to do is open your text file and assign correct properties to new material.

Edit: If you want to make a custom menu item and custom window in Unity Editor you should look at ExitorWindow examples and MenuItem attribute:

http://unity3d.com/support/documentation/ScriptReference/EditorWindow.html

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 user-11409 (google) · Apr 13, 2011 at 04:51 AM 0
Share

Ok i had a look into this it is like an event??? I don't want to respond to an event, I want to run (In the Editor not the game) when I click a Custom button on a tool bar or a keyboard Short-cut. Is there a C# hello world script that will open a $$anonymous$$essage box in the Unity Editor when you Click a custom button or use a short cut key

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

No one has followed this question yet.

Related Questions

Multiple Cars not working 1 Answer

Distribute terrain in zones 3 Answers

Renderer isn't changing Materials 0 Answers

Importing Ready Models from 3DMAX to Unity, Materials 1 Answer

how to change a material in materials[] 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