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 TheHardkaare · Apr 26, 2014 at 06:18 PM · gamemodelpngphoto

Why can I not use .png photos as my game assets?

Hey.

I'm making a Space Shooter for my exam project in programming, and decided to get help from the official Unity tutorial on Space Shooters.

I've come into a problem very early on - when creating the main ship. It's in the very start of this video: https://www.youtube.com/watch?v=hKB0NIiWliE

I know he uses 3d models for the ship, but can't I simply use a png picture instead? It is a 2d shooter afterall.

When he drags the model into the Hiearchy window, mine just won't allow it. This is probably a fundamental error, but I do not have any idea how to fix it, since I'm very new at Unity.

Comment
Add comment · Show 16
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 Scrapy_ · Apr 26, 2014 at 06:22 PM 0
Share

well you could maybe just add a quad and apply the image onto it.. I think black will be transparent, maybe you need to find the right shader

that is actually explained in that tutorial at some point when you make the laser bolts. "particles/additive" is the shader used on the bolts.

avatar image TheHardkaare · Apr 26, 2014 at 06:53 PM 0
Share

Scrappy_ - I've now looked through that tutorial, but it seems very odd. In my game, it looks like this http://i.imgur.com/vhAQVd4.png

And in the scenes, it looks like this http://i.imgur.com/TDDgbYS.png

What am I doing wrong?

avatar image Scrapy_ · Apr 26, 2014 at 06:57 PM 0
Share

It looks like you just need to set up the camera or rotate the image to face the camera.

and did you select the particles/additive shader to get rid of that black?

avatar image robertbu · Apr 26, 2014 at 07:05 PM 0
Share

In order to have transparency you need two things: 1) an import setting on the texture that save the alpha channel, and 2) a shader that supports transparency.

avatar image robertbu · Apr 26, 2014 at 07:45 PM 1
Share

Select the texture. You will see the import setting for that texture on the right.

  • Set Texture Type to 'Advanced'

  • Turn off generate $$anonymous$$ip $$anonymous$$aps

  • Change the format at the bottom to RGBA32

These may not be your final settings, but a place to start.

Show more comments

0 Replies

· Add your reply
  • Sort: 

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

21 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 avatar image avatar image avatar image avatar image

Related Questions

Using models from installed games 3 Answers

how to i make a .fbx file out of the .png picture of the model 3 Answers

can i use models from a game 1 Answer

Distructible plants and dirt. 0 Answers

Where can I get FREE 3D models for my game? 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