Unity – how to make material double sided

Search for the issue gives a number of solutions, but they don’t work for some reason in mine Unity3D 5.4. Like camera inside a sphere I do not see cull and/or sides in material in Unity editor. In C# gives no such setFaceCulling and side property. How to make material double sided?

Background of MainCamera (Unity C#)

* Edit 2020 Unity now has a simple way to do this, in Unity 2018.4+. Follow these few steps to add texture as a camera background: Create a new Canvas that would hold your image. In that canvas, on Canvas component set: Render Mode to Screen Space – Camera. Render Camera to your main camera … Read more

Unable to build In unity : “UnityEditor.BuildPlayerWindow+BuildMethodException:”

The project runs just fine but I am unable to build it using build settings. Here’s the error message: UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002bb] in <2f1c602eae0d45c293fff3e3aef759fa>:0 at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <2f1c602eae0d45c293fff3e3aef759fa>:0 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

How to change canvas position in Unity?

See the bit in your canvas inspector about it being “screen space – overlay”? That means: “This render mode places UI elements on the screen rendered on top of the scene. “ And what THAT means, is that you don’t have to worry about where the Canvas and child Text show up in your scene … Read more

What is a good naming convention for Unity?

The Unity convention is actually rather simple: everything is Pascal-cased, types (classes, structs, enums) and methods start with upper-case, fields and properties with lower-case. Enum values in upper-case, constants in lower-case (usually). So ClassName, MethodName, myField, myProperty { get; set; }, MyEnum.CaseA… that’s it. As for your example, Transform is a class, whereas transform is an accessor to the instance of Transform in that particular GameObject/Component. … Read more

How to change canvas’ size in unity3d

So may be my question should be how to change the screen size showed in editor? To change the screen size, go to the Game window (accessed by the menu “Window->General->Game”). At the top of the window will be a screen size menu (outlined in green, below) to change the screen size. When pressed, it … Read more

Developing Unity game on Windows for iOS devices

I have made several Unity3D projects for iOS using a Windows. When installing Unity, don’t forget to check “iOS deployment” and your Unity (on Windows) will be able to build an Xcode project. Then, just transfer this Xcode project on a Mac with Xcode installed and you will be able to compile the project in … Read more