Skip to main content

Posts

Showing posts with the label Guides

Android SDK Tools Installation for unity3d - Simple guide

Android SDK Tools Installation for unity3d Simple Guide. When you are building an Android app in Unity, make sure you arranged the Android Software Development Kit (SDK) just before you build and play any code on your Android device. Install JDK Before SDK In case you don’t have a Java Developer Kit (JDK) it is important to download one from here before you can set up the Android SDK. Install Android SDK To develop an Android app you'll want to set up the Android SDK, and this can be downloaded from here . I installed the SDK to c:\android-sdk Enabling USB Debugging Image source kingroot It is important to enable USB debugging with the device. On Android 4.2 and more, the Developer options screen is secret by default. For it to be visible, go to Settings > About phone and tap Build number 7 times. Go back to the previous screen and choose Developer options at the end and turn on USB debugging. On earlier versions of Android, go to Settings > Applications >...

The name `Profiler' does not exist in the current context [Solved]

Unity upgrades come with more features and ease where it also bring problem for some indie as well as pro developer, Like this "profiler" error. Recently i moved my older unity project to latest unity 5.5 and see this error. The name `Profiler' does not exist in the current context    The simple solution for this error is to add this class >  using  UnityEngine . Profiling ; and everything will work fine.   Thats it :) Keep supporting us :) there is a support button on top. See Also: Your android debug keystore file is missing [FIX]

rc.right == m_gfxwindow->getwidth() [FIX]

The error is: SUCCEEDED ( hr ) rc . right == m_GfxWindow -> GetWidth () && rc . bottom == m_GfxWindow -> GetHeight ()   it works in most cases, but not all time. Solutions From different users: I found that closing and re-opening unity fixed the error (or at least stopped it from showing up in the footer). I re-started Unity and the message is gone. I tried run unity as admin and the problem is solved  I had the same problem. I was using two screen and it was solved when I turned off one of them.  see also: NullReferenceException: Object reference not set to an instance of an object Unity’s latest Facebook build target finally available as a Developer Beta Mode

NullReferenceException: Object reference not set to an instance of an object

NullReferenceException: Object reference not set to an instance of an object This Exception occurs in Unity whenever you try to access a variable that is not initialized or does not refer to any object. For example when you create a GameObject variable in a script, by default it does not refer to anything. To assign a value to that GameObject variable you have to make it equal to some value before using it. Example: <?phpPublic GameObject myObject; void Awake(){ myObject = someObject; } You can either set myObject in code as shownin example above, or through inspector as it is a public object (refer to image below). This exception can also occur while trying to instantiate and object for same reason. For Example: Instantiate(myObject,new Vector3.zero,Quaternion.Identity); This might give NullReferenceException if myObject variable refers to nothing. This Exception will also occur if you are trying to access a member function of uninitialized object. For Example...

Failed to import package with error: Couldn't decompress package

Failed to import package with error: Couldn't decompress package Before going to my method, Check all these things. Have you downloaded complete package? Have you got enough disk space? If you are using Chinese windows xp, don't put the package under a folder whose name includes Chinese character. My method: I was trying to import package with the name "FunCar Kit V2.0 – Mobile Update v2.0.unitypackage" i just renamed this package to   "FunCar.unitypackage" and problem solved :). Try this and tell me in comments below!

Adcolony Clear Cache Solution

We know that developing android apps and working with AdColony SDK to show video ads gives you problem. The problem we found usually it keeps downloading video ads and save them on the device. I found the comment from the person from Adcolony, He says AdColony does cache our assets to the device - both for quality (instant loading advertisements) as well as reusability. Many assets are shared across multiple campaigns and in the case that a duplicate advertisement is served it saves you from re-downloading the same assets. Each device has a specific memory class (or app specific memory limit) that we will not exceed, and we also purge old and unused assets occasionally to keep the size down. While it is possible to programmatically clear your app's data cache, we do not recommend this as it may lead to redundant downloads and unnecessary data usage. Please feel free to contact us further at support@adcolony.com. Solution: Your video is stored in the application dat...

[SOLVED] Your Android setup is not correct. See Settings in Facebook menu

Your Android setup is not correct. See Settings in Facebook  menu.UnityEditor.HostView:OnGUI() The simple way to solve this error is installing OpenSSL. 1 - Download the OpenSSL installer (the x64 full package) here : http://slproweb.com/products/Win32OpenSSL.html (link to the file : http://slproweb.com/download/Win64OpenSSL-1_0_1f.exe ) If you are on older version of JavaSDK please update it. 2 - Download the lastest x64 JavaSDK here ( http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html).  And are you using latest facebook SDK for desired unity version? 3 - Take a look here : https://developers.facebook.com/docs/unity/downloads/?campaign_id=282184128580929&placement=SDK_list Must See: Optimizing Mobile Games in Unity Now you have everything ready to solve this error! Install OpenSSL on C:/ and open it  And add its Environment Variables in windows Path. Go to "Control Panel > System > Advanced system...

Problems Switching Platform - No Android Module Loaded [Solved]

A short while ago I updated to 5.3.1 version of Unity and I realized that I now just can't build scenes or simply switch platforms to others and the one i desired to switch to was Android. I've got an android device that I connect to move the app to but it just shows No Android module loaded.   After searching stuff i noticed that i only downloaded unity editor , without its component :P , Then i go back to unity download archive and downloaded unity installer  Run Installer and select platforms you want build game on, simple   Check out its gif  Like and subscribe us for more :)

How to Rdeem Voucher For Unity3d Asset store, Simple Guide

Go to https://www.assetstore.unity3d.com/ and sign in with your Unity developer credentials at the top right corner. After that, click on you account name, in drop-down list click "My account".   On the following page scroll down, you will see a section "Redeem Voucher", and enter the voucher number After click on submit you will be redirected to download page, and you can download that package easily, Share if you like it, Help your friends :)

Unity 5 Render Settings [Solution]

Unity guys rearranged few menus in unity 5 like  Unity 5 Render Settings. Many game developers specially indies and newbies still don't know where unity 5 render settings are. So today its very short and simple guide for all those missing render settings in unity 5. Simply: Choose Window- > Lighting from the menu bar. In this window you can see all render settings easily. That's it They already mentions about lighting window in their unity 5 features page http://unity3d.com/unity/whats-new/unity-5.0 New Lighting window Single place to specify lightmapping, GI and scene render (ambient/reflection/fog) settings. UI grouped by logical areas. When real-time lightmaps are disabled and baked lightmaps enabled, indirect lighting of real-time lights is automatically baked into baked lightmaps. If you don't want this behavior, set indirect lighting to 0. Share if your friends don't know!

Publish Your Unity Game on Facebook Using Dropbox

Facebook is must have game platform to socialize your android and iOS games. I don't want to waste your time..  Lets Goto the Guide How to  Publish Your Unity Game on Facebook Using Dropbox 1.Register for the Facebook app   https://developers.facebook.com/apps complete form and details asked by Facebook. 2.Make sure you have dropbox installed in PC or mac   Sign up dropbox . Recommended Guide -  How To Publish Your WebPlayer Game For Free With Dropbox! 3.In Facebook developer app click Settings >  Add Platform and then select Facebook canvas. in canvas settings put your game URL in Secure Canvas URL and at the end of URL add '?'. NOTE: If you don't know how to build for web with Dropbox link, please visit above  Recommended Guide . 4.Click save, To play your game make sure game is live  available to the general public to make it live goto settings > basics and enter your valid email address click save then go...

$300+ In 4 Days With Reskinning Game

Now a days word reskin is everywhere in game developers field, you can hear this word mostly on freelancers sites like odesk, freelancer, elance etc. Reskinning is a great and ideal way for startup guys and also for me :) This is like altering the appearance of the video game (graphics, menu’s, in-game characters, background scenes, and so on) and also the sounds and tunes hanging around while maintaining the definite gameplay almost the same. Images, sounds and audio are together termed as game or app resources, Reskinning is actually a procedure where app developers don't need to develop a game from the beginning. You get a premade source-code of an app/ game and alter its layout entirely, so it can have an exciting new look. There are lots of benefits of reskinning premade codes like, cutting developing time, growing income, reducing issues and many others. Today I am going to show the simple way I used to earn $300 in 4 days with odesk and reskinning. ...

Unity Crashes on startup- A quick Fixes

Sometimes it happens that you try to open unity editor but it goes bug report screen or crash. By default, Unity always loads up the last project that you edited. 1. You can skip this bug screen by holding down "Alt" immediately after unity starts, and you'll get an option to select a different project or start a new project. 2. If this doesn't solve the error you should check you drivers this happens with lots of users reported. Start > Run > "DXDIAG" and hit enter Uninstalling the HID drivers helped many users. 3. Renaming the project which is crashing also solve, but start project as a blank. 4. Uninstall any third party application you installed for unity. If the problem still continue please contact Unity Support: support@unity3d.com or report a bug. Am I missing something? Suggest me in comments!

Unity Remove Component or Game Object

The way to remove game object you want is simple easy what you need to add is the piece of function and your object. The public static function Destroy() is a key its Removes a gameobject, component or asset.  reference Examples: // Kills the game object Destroy (gameObject); // Removes this script instance from the game object Destroy (this); // Removes the rigidbody from the game object Destroy (rigidbody); // Kills the game object in 5 seconds after loading the object Destroy (gameObject, 5); // When the user presses Ctrl, it will remove the script // named FooScript from the game object function Update () { if ( Input.GetButton ("Fire1") && GetComponent (FooScript)) Destroy (GetComponent (FooScript)); }

Unity Slender Guide by alucardj

Have a look at the complete guide and source of slender  by  alucardj . This what he said in unity forum. +unity3DIY Finally, I have given up and am now making my scripts available for download. If you need to know how these scripts work, watch all my videos. If you want to just get the game running, follow the videos starting at 79 _ Slender the Examination 6 months after I started using Unity 3D I wrote a little 'guide' on Unity answers to a question about Slender. That turned out to be crazy, I never expected the amount of traffic and questions that was to come after that. Now ignorance is no excuse but i was naive, I didn't even know what a Slender was! The first time I answered a question for how to pick up papers, I thought it was for a RPG quest or a school project. When the how can the player detect when the enemy is visible questions came up, I was thinking about Doctor Who (if you know what I mean, you'll know. I want to do that one myself!). In...

Know the Unity version of a Unity project Without Unity

Indie developers have lots of projects/assets in his PC/Mac to work on them and sometimes they forget what unity version they were using for their particular project and they want to know its version. So today we have a quick trick for those who wants to know unity version without opening a project in unity editor.   So lets go with us 1. GOTO  Your Project > Library Here you will see lots of files with .asset format open any of them in notepad. In notepade editor you can see the unity version in first line :) enjoy You should see also: Upload Failed You Need To Use A Different Version Code For Your APK Asset Store Not Working - The Solutions Share, comment or tweet if you like this!

Unity DEPENDENCY INJECTION-unityblog

Testability is a crucial element of every software product – game development is not an exclusion. To allow testability, all of the components must be independent and testable in separation. Once we wish to test something in isolation this means that we wish to decouple it. Reduce coupling is everything we want. It's so simple to implant hidden dependencies to your game and it's really so difficult to break them. This article can help you realize loose coupling and dependency injection within project in Unity, using the example project on github . you should join us on  +unity3DIY

Unity 2d Water fluid system, How to make it?

When I was searching to make unity 2d water fluid system and unity 2d water effect I got lots of threads on forums, blogs and everywhere. I found some good techniques and plugin that I want to share today. Today I am not giving you right answer but telling some methods and plugins you can use and tutorials you can follow to get unity 2d Water fluid system in you 2d or even 3d projects. There are many other ways like Metaballs   but metaballs are for 3d one solution is also available to make it 2d ,  and a game by PixelJunk called Shooter they use some trick and also described at GDC2010 Presentation  (PDF) unity 2d water Fluvio Plugin Test First I love to show this plugin called fluvio. I get it from asset-store what fluvio said about their plugin. "Fluvio is a solution for real-time 2D/3D fluid physics. It is fully integrated with the editor and compatible with desktop, web player and mobile platforms. Fluvio can simulate both liquids and gasses...

Who Can Sell and Who Can Not On Google Play!

Before  submitting  an app/game to  Google  play, make sure that you checked country restriction list made by  Google . Google Play has two type of lists for developers and also for users. Supported locations for distribution to Google Play users Supported locations for developer and merchant registration 1. First list for the users describing that users from specific countries can buy/free download and purchase in app items app. Fact: In this list China cannot Download paid apps even users wants to pay for this app, 2. Second list for the developers and merchants who wants to upload their game for free or with In App Purchase. Google Developer's registration fee is $25. Things you should see: How to style you code What is GitHub?

Prevent colliders from passing through each other.

Avoiding your objects from passing with each other is really tricky especially for fast moving objects like bullets and Prevent colliders. Today we made tutorial and script for you to show how to prevent colliders  from passing through each other. The best way to make sure that you detect all collision is to use Raycasting instead of depending on the physics simulation. This is helpful for bullets or small objects, but will likely not provide great results for large objects.  Below answer is from stackoverflow Collision with fast-moving objects is always a problem. A good way to ensure that you detect all collision is to use Raycasting instead of relying on the physics simulation. This works well for bullets or small objects, but will not produce good results for large objects. http://unity3d.com/support/documentation/ScriptReference/Physics.Raycast.html Pseudo-codeish (I don't have code-completion here and a poor memory): void FixedUpdate() { Ve...