サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
買ってよかったもの
wiki.unity3d.com
Introduction This guide is by no means a bible on how to write good code, but shows how to format code to make readability easier, and code cleaner. Style Guidelines Below are good practices for code styling Bracing Open braces should always be at the beginning of the line after the statement that begins the block. Contents of the brace should be indented by 1 tab or 4 spaces. For example:
Simple TCP/IP Client - Server - Return to TCP/IP Client - Server Page If you are using C#, this is the code you need for a C# class library. Once compiled into a DLL using C#, just place the DLL into your Assets/Plugins folder the follow the code for the Unity script. // This is the client DLL class code to use for the sockServer // include this DLL in your Plugins folder under Assets // using it
Putlocker-Watch The Fate of the Furious 2017 Full Movie Online Full-[WATCH] The Fate of the Furious 2017 Online Free Movie | Noun Project Watch The Fate of the Furious Full Movie Free | 123Movies [BOSSBABY!] The Fate of the Furious F.ull Movie Online (2017) - Twitter 2017~hd!]ONLINE: The Fate of the Furious F.ull Movie F`r`e`e #Download 2017~hd!]ONLINE: The Fate of the Furious F.ull Movie F`R`E`E
Watch La La Land Online Free Putlocker - English Subtitles- Watch ... ▼ Click Here To Watch Full Movie Now ▼ ▼ Click Here To Watch Full Movie Now ▼ Watch La La Land Online Free On Solarmovie Watch La La Land 2013 Online Free Full Movie - WowMovie Watch La La Land (2013) Online For Free - Viooz - Watch La La Land Online Free ... Watch La La Land Movie Online Free | Megashare watch La La Land online
Watch Fifty Shades Darker Online Free Putlocker - English Subtitles- Watch ... ▼ Click Here To Watch Full Movie Now ▼ ▼ Click Here To Watch Full Movie Now ▼ Watch Fifty Shades Darker Online Free On Solarmovie Watch Fifty Shades Darker 2013 Online Free Full Movie - WowMovie Watch Fifty Shades Darker (2013) Online For Free - Viooz - Watch Fifty Shades Darker Online Free ... Watch Fifty Shades Darker
Description If you've used Texture2D.Resize, you may have been disappointed to find that it only resizes the texture; it doesn't scale the contents. Using TextureScale, however, you can in fact do just that, using either bilinear or point (nearest neighbor) filtering. It also uses multi-threading to speed up the process on CPUs with more than one core. (Although SetPixels() and Apply() cause a pre
Original Author: capnbishop CSharp Author: thedadymac Description I didn't like having a UnityScript file in my otherwise CSharp script folder, so I ported it to C#. NotificationCenter.cs allows for easy and powerful messaging between objects in Unity. An object can register as an observer and receive notifications of a certain type when they occur. When that notification type is posted elsewhere,
Author: User:AnomalousUnderdog. Description A variant of Outlined Diffuse 3 showing outlines only at the exteriors of the object. Useful for showing which character is selected in a strategy game, for example. The outline is merely the object in question but scaled upwards, rendered in a single color, and it always shows on top of everything (like the tree here), except the object it is outlining.
DISCLAIMER: This page is written by Unity users and is built around their knowledge. Some users may be more knowledgeable than others, so the information contained within may not be entirely complete or accurate. Structures Unity's shaders use structures to pass information down the rendering pipeline. Semantics Semantics are special qualifiers that are added to some structures. They define how fi
The following tips are not meant to be absolutes but rather guidelines for Unity users that want to learn how to make a well performing game. Official Tips from OverTheEdge Optimizing Graphics Performance Reducing File Size Character Animation (Tips are interspersed.) General Tips on Optimization Profile first. Don't spend time trying to optimize some obscure code or reducing the size of a texture
Hidden Folders Folders that start with a dot (e.g. ".UnitTests/", ".svn/") are ignored by Unity. Any assets in there are not imported, and any scripts in there are not compiled. They will not show up in the Project view. "Standard Assets" Scripts in here are always compiled first. Scripts are output to either Assembly-CSharp-firstpass, Assembly-UnityScript-firstpass, or Assembly-Boo-firstpass, dep
Description This is a script to let you easily use any of the three screen capture methods (Application.CaptureScreenshot, Texture2D.ReadPixels, or RenderTextures) to obtain a game screenshot. If you're simply saving the image to file, you can also choose to have the screen capture happen asynchronously, which reduces game lag. Usage Just attach this script to an empty game object, and call the sc
Alternatives Scriptable Objects One excellent alternative to the singleton pattern in Unity is the use of ScriptableObjects as a type of global variable. Ryan Hipple from Schell Games gave a presentation at Unite Austin 2017 titled Game Architecture with Scriptable Objects that explains how to implement them and the many advantages over singletons. Toolbox The "Toolbox" concept improves upon the s
End of support for UnityScript Starting with Unity 2018.2, support for UnityScript (Unity's version of JavaScript) has ended. C# is now the only supported language going forward. You can learn more about the reasons for this change here. There is an official UnityScript-to-C# Automatic Conversion tool to help those wanting to transition their UnityScript projects over to C#. Note: This page attemp
UnityScript (Unity's Javascript) To use SimpleJSON in UnityScript you have to add this line at the top of your script: For UnityScript it's vital to place the SimpleJSON.cs (and SharpZipLib if needed) into a higher compilation group than the UnityScript file that should use it. The usual place is the Plugins folder which should work in most cases. Examples (C# / UnityScript) This is the JSON strin
Description This set of scripts will send a player's name and score to a server to be stored in a MySQL Database, and then also loaded by the game to be seen. Step 1: Create the blank MySQL Database Go into whatever you use to manually modify a MySQL Database (I usually use phpMyAdmin), and create a new database. Now go into that database and click the SQL tab to run your own SQL And paste this SQ
Description This script animates a texture containing tiles of an animation. You can give it a framerate to determine the speed of the animation and set how many tiles on x, y there are. Usage Attach this script to the object that has a material with the tiled texture. To avoid distortion, the proportions of the object must be the same as the proportions of each tile (eg 1:2 for the sheet below).
Description When using 3D text, the default shader is the same one used for GUIText, which makes the 3D text always appear on top of objects. This is frequently not what you want when using 3D text, so this 3DText shader makes it behave properly. Usage Place this shader somewhere in your Assets folder hierarchy. Then, replace the font material on the mesh renderer of the 3D text with a different m
End of support for UnityScript Starting with Unity 2018.2, support for UnityScript (Unity's version of JavaScript) has ended. C# is now the only supported language going forward. You can learn more about the reasons for this change here. There is an official UnityScript-to-C# Automatic Conversion tool to help those wanting to transition their UnityScript projects over to C#. Introduction Although
Realtime 3D Metaballs using C#, Feel free to attempt to write it in Javascript, To see some webplayer samples go to [[1]] To use the code, simply make an empty object, then attach a Mesh Filter and Renderer and the script, and bring the camera up close because it will be one unit in height,width, and depth. The code is commented and to modify the metaball movement just change Update() and Start()
AllocationStats is a simple helper utility for showing how much memory your application has allocated. It uses GC.GetTotalMemory to keep track of the memory usage. Usage Add the AllocMem script to any gameObject in your scene. When you press play, a small window will show containing the following info. Currently allocated Shows the total memory allocated according to the GC. Peak allocated Shows t
This shader draws faces which are invisible, but which still appear in the depth buffer. This allows you to prevent objects from being drawn where they are occluded by the mask. To understand how this technique works, you should know about the depth buffer and render queues before reading further. Usage The example package shows how to use the shader to prevent the water from appearing inside a bo
CharacterController CharacterMotor - C# port of the official standard asset script (Unity 3/4.x). FPSWalkerEnhanced - Enhanced version of the official FPSWalker standard asset script with many added features. SimpleTankController - Emulates simple tank like movement. ClickCharacterController - Moves the character to the cursor position on click. TapMoveDragLook - Mobile touch-based character contr
Author Matt Schoen of Defective Studios Download Use the github repository or get it on the AssetStore Intro I came across the need to send structured data to and from a server on one of my projects, and figured it would be worth my while to use JSON. When I looked into the issue, I tried a few of the C# implementations listed on json.org, but found them to be too complicated to work with and expa
JavaScript Introduction Author: PsychicParrot Little script to fade an image (stretched to fit the screen, so use a 1x1 black pixel for a simple black fade in/out). Simply apply it to your camera (or an empty GameObject), set the texture to use, set the fadeSpeed and call fadeIn() or fadeOut() Easiest way is probably to apply this script to your main camera in the scene, then wherever you want to
This page serves as a cross reference between Unity and the XBOX 360 contoller buttons/axis. Full controller support If you only build your game for Windows, you may be interested in XInput.NET which allows full XBox 360 controller support. For an InputManager.asset file with four XBox 360 controllers mapped click here or with separate axises for triggers: click here Configuration The sensitivity
IMPORTANT: due to the volume of spam accounts that have been bypassing the (simple) barrier question, we now require that all new accounts are approved by an administrator. At the time of writing (2012-11-28) we're still setting up procedures to deal with this, so please bear with us if your account creation request isn't handled in a timely manner. Please drop by the #unity3d IRC channel or Unity
このページを最初にブックマークしてみませんか?
『wiki.unity3d.com』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く