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 ganesh-mune · Mar 28, 2013 at 01:47 PM · texturespainting

How to assign texture instead of Default colors to the paint brush??

Hello friends I am developing an application of painting just like paint brush but I want to add more features into it like user can draw lines with the selected TEXTURES and can change shape of brush. Like crayons, pencil, paint brush, sketch pens, etc so please help me for this. Thanks :)

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 AVividLight · Mar 28, 2013 at 02:11 PM

ganesh.mune,

I'm sorry to tell you this, but you won't get any good answers by asking a question so vague. It's a good practice on UnityAnswers (heck, it's a good practice on the internet) to try your best achieve your goal before you ask for help, and post your best effort, along with your question, if you can't figure it out.

Your question is actually so vague, I can't even suggest a place to start. You seem to suggest that you have something working already, but you haven't mentioned what it is, and you haven't even given enough details as to what you want to add. You want the user to be able to draw lines? Well, what are you using to draw normally? I'm sorry, but without more information, I can't answer your question.

I hope you can get something working! - Gibson

Comment
Add comment · Show 2 · 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 ganesh-mune · Mar 28, 2013 at 02:21 PM 0
Share

Hello Gibson, Actually I am doing paint brush like app and for that I did basic things like brush, eraser and you can choose width of brush for that I have used set pixel but now I want to add bit extra like different pattern of brushes ( you can say different shapes of brushes) and also textures too suppose texture of heart so if user selects that texture then he/ she should be able to draw line of this texture. But I am not getting any help for this on internet, searched a lot but not getting proper ans. :(

avatar image AVividLight · Mar 28, 2013 at 06:13 PM 0
Share

Are you using Texture2D.SetPixel? If so, you could use Texture2D.SetPixels to make a line (you could also just use a while/loop or for/loop). Also, you could get the pixels of an image and use that data in Texture2D.SetPixels to make the background an image. Of course, you could just put a 2d plane in the background, and assign the texture to that. If you want to do different brush shapes, you could use Texture2D.SetPixels again, and just set the pixels in the shape of a brush.

I hope this helps! -Gibson

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

11 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

Related Questions

iOS Shader with 8 lerpable textures via Vertex Colour/Painting 1 Answer

Why is my terrain so dark? 1 Answer

Sprite/Texture Eraser and Painter 0 Answers

Painting on Textures 2 Answers

Cannot paint textures onto terrain, errors are raised 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