id
stringlengths
15
22
source
stringclasses
2 values
category
stringclasses
12 values
instruction
stringlengths
22
180
response
stringlengths
100
46.1k
system
stringclasses
5 values
local_sr_b9d0b2886c50
unity_docs
physics
What is `Rigidbody.OnCollisionStay` in Unity? Explain its purpose and usage.
Rigidbody.OnCollisionStay(Collision) Description OnCollisionStay is called once per frame for every Collider or Rigidbody that touches another Collider or Rigidbody. In contrast to OnTriggerStay, OnCollisionStay is passed the Collision class and not a Collider. The Collision class contains information about co...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_73e3a76c1bec
unity_docs
rendering
In Unity's 'Line Renderer properties reference', what is 'Lighting' and how does it work?
The Lighting section contains properties that relate to lighting. Property Description Cast Shadows Specify if and how this Renderer casts shadows when a suitable Light shines on it. This property corresponds to the Renderer.shadowCastingMode API. The options are: On : This Renderer casts a shadow when a shadow-casting...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_202573ea4d68
unity_docs
scripting
Show me a Unity C# example demonstrating `Video.VideoPlayer.isPrepared`.
eoPlayer emits the VideoPlayer.prepareCompleted event, which sets isPrepared to true . The property goes back to false when you or the VideoPlayer calls VideoPlayer.Stop . If there are preparation failures, this property might never be set to true . In this case, Unity sends an error description through the ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_563fbfe39d78
unity_docs
editor
What are the parameters of `EditorGUI.LinkButton` in Unity?
Returns bool true when the user clicks the link. Description Make a clickable link label. The label has an hyperlink style and returns true when clicked. ```csharp using UnityEditor; using UnityEngine; class EditorGUILinkButton : EditorWindow { [MenuItem("Examples/EditorGUILinkButton")] static void Init() {...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_52807328a551
unity_docs
scripting
What is `Rendering.VirtualTexturing.GPUCacheSetting.format` in Unity? Explain its purpose and usage.
Virtual Texturing is experimental and not ready for production use. The feature and documentation might be changed or removed in the future. GPUCacheSetting.format public Experimental.Rendering.GraphicsFormat format ; Description Format of the cache these settings are applied to. A format of GraphicsFormat.N...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_39edc7bfa2e5
unity_docs
rendering
Give me an overview of the `TextureImporterNormalFilter` class in Unity.
TextureImporterNormalFilter enumeration Description Normal map filtering mode for TextureImporter . Additional resources: TextureImporter.normalmapFilter . Properties Property Description Standard Standard normal map filter. Sobel Sobel normal map filter.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_13f8fd390603
unity_docs
scripting
What is `UIElements.ListView.itemTemplate` in Unity? Explain its purpose and usage.
ListView.itemTemplate public UIElements.VisualTreeAsset itemTemplate ; Description A UXML template that constructs each recycled and rebound element within the list. This template is designed to replace the makeItem definition. You can use it along with BaseListView.bindingSourceSelectionMode and bindi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_2b1c50bdba0d
unity_docs
scripting
In Unity's 'Main module reference', what is 'Properties' and how does it work?
For some properties in this section, you can use different modes to set their value. For information on the modes you can use, refer to Vary Particle System properties over time . Property Function Duration The length of time the system runs. Looping If enabled, the system starts again at the end of its duration time a...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_bc0dc24ab872
unity_docs
scripting
What is `Experimental.GraphView.Node.BuildContextualMenu` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. Node.BuildContextualMenu Declaration public void BuildContextualMenu ( UIElements.ContextualMenuPopulateEvent evt ); Parameters Parameter Description evt The event holding the menu to populate. Description Add menu ite...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_df565c92a8e3
unity_docs
xr
What is `Search.ISearchView` in Unity? Explain its purpose and usage.
ISearchView interface in UnityEditor.Search Description Search view interface used by the search context to execute UI operations. Properties Property Description context Returns the current view search context. currentGroup Indicates the current group that is selected by the user. displayMode Indicates how ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_f83e5038512c
unity_docs
ui
In Unity's 'Introduction to IL2CPP', what is 'How IL2CPP works' and how does it work?
When you build with IL2CPP, Unity automatically performs the following steps: The Roslyn C# compiler compiles your application’s C# code and any required package code to .NET DLLs (managed assemblies). Unity applies managed code stripping . This step can significantly reduce the size of a built application. The IL2CPP ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4b7456a6f538
unity_docs
rendering
What is `ParticleSystem.EmitParams` in Unity? Explain its purpose and usage.
EmitParams struct in UnityEngine / Implemented in: UnityEngine.ParticleSystemModule Description Script interface for Particle System emission parameters. Properties Property Description angularVelocity Override the angular velocity of particles this system emits. angularVelocity3D Override the 3D angular v...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_df8c36ea67c2
unity_docs
scripting
Give me an overview of the `Resolution` class in Unity.
Resolution struct in UnityEngine / Implemented in: UnityEngine.CoreModule Description Represents a display resolution. Resolution structures are returned by Screen.resolutions property. Properties Property Description height Resolution height in pixels. refreshRateRatio Resolution's vertical refresh rate...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_1e34e3669c00_doc_0
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
Links one event from broadcaster GameObject to one method from listener GameObject's MoonoBehaviour. Signature: ```csharp public class EventLink : EventLinkBase ```
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
local_sr_9f3bd3cf81a9
unity_docs
rendering
What is `Experimental.Playables.TextureMixerPlayable.Create` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. TextureMixerPlayable.Create Declaration public static Experimental.Playables.TextureMixerPlayable Create ( Playables.PlayableGraph graph ); Parameters Parameter Description graph The PlayableGraph object that will ow...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5743eff4b8cb
unity_docs
physics
What is `UIElements.ManipulatorActivationFilter` in Unity? Explain its purpose and usage.
ManipulatorActivationFilter struct in UnityEngine.UIElements / Implemented in: UnityEngine.UIElementsModule Description Defines conditions for manipulators to respond to specific events. ```csharp public class ClickableTest { public void CreateClickable() { var clickable = new Clickable(() => { Debug.Log...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5b8bb07ee89b
unity_docs
rendering
What is `SpeedTreeImporter.enableSubsurface` in Unity? Explain its purpose and usage.
SpeedTreeImporter.enableSubsurface public bool[] enableSubsurface ; Description Gets and sets an array of booleans to enable the subsurface scattering effect for each LOD (affects only SpeedTree v8 assets). This setting controls the light scattered out the back side of leaves and other two-sided SpeedTree mate...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_2690312d7d22
github
scripting
Write a Unity C# script called Sim Loop Minimap Source
```csharp using FactoryMustScale.Simulation; using UnityEngine; namespace FactoryMustScale.Runtime.Visualization { /// <summary> /// Real simulation-backed minimap source that reads authoritative references from SimulationLoopDriver. /// </summary> public sealed class SimLoopMinimapSource : GridMinimap...
You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization.
local_sr_348f76e79df9
unity_docs
scripting
What is `Experimental.Rendering.GraphicsFormat.RGBA_ASTC8X8_UNorm` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphicsFormat.RGBA_ASTC8X8_UNorm Description A four-component, ASTC compressed format where each 128-bit compressed texel block encodes an 8×8 rectangle of unsigned normalized RGBA texel data.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0f41d9dc4cd1
unity_docs
scripting
What is `UIElements.ScrollViewMode` in Unity? Explain its purpose and usage.
ScrollViewMode enumeration Description Configurations of the ScrollView to influence the layout of its contents and how scrollbars appear. ScrollView.mode The default is ScrollViewMode.Vertical . For more information, refer to UXML element ScrollView . Properties Property Description Vertical Conf...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3d5f932a259e
unity_docs
scripting
What is `Actions.ContextMenuUtility.AddGameObjectEntriesTo` in Unity? Explain its purpose and usage.
ContextMenuUtility.AddGameObjectEntriesTo Declaration public static void AddGameObjectEntriesTo ( UIElements.DropdownMenu menu ); Parameters Parameter Description menu The Scene view context menu to add the default actions for a GameObject and the component menu items of the current selection to Descrip...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_bea90568b596
unity_docs
rendering
What is `SystemInfo.GetRenderTextureSupportedMSAASampleCount` in Unity? Explain its purpose and usage.
SystemInfo.GetRenderTextureSupportedMSAASampleCount Declaration public static int GetRenderTextureSupportedMSAASampleCount ( RenderTextureDescriptor desc ); Parameters Parameter Description desc The RenderTextureDescriptor to check. Returns int If the target platform supports the given MSAA samples co...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6f10932077bd
unity_docs
scripting
Show me a Unity C# example demonstrating `DeviceType.Desktop`.
DeviceType.Desktop Description Desktop or laptop computer. ```csharp //Attach this script to a GameObject //This script checks what device type the Application is running on and outputs this to the consoleusing UnityEngine;public class DeviceTypeExample : MonoBehaviour { //This is the Text for the Label at the top...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_386f6808cff5
unity_docs
audio
What is `UnityEngine.AudioModule` in Unity? Explain its purpose and usage.
UnityEngine.AudioModule Description The Audio module implements Unity's audio system. Classes Class Description AudioChorusFilter The Audio Chorus Filter takes an Audio Clip and processes it creating a chorus effect. AudioClip A container for audio data. AudioDistortionFilter The Audio Distortion Filter distor...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d6f3103970de
unity_docs
scripting
Show me a Unity C# example demonstrating `MonoBehaviour.StopAllCoroutines`.
ed coroutines can execute for a range of times. In the following example, two coroutines are created and run without stopping until StopAllCoroutines is used to stop both of them. This action can be made to happen on a script that runs multiple coroutines. No arguments are needed because all coroutines on a script ar...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4d1f3c576829
unity_docs
rendering
Show me a Unity C# example demonstrating `Search.FetchPreviewOptions`.
FetchPreviewOptions enumeration Description Options for the search provider on how the preview should be fetched. These options are used by the SearchProvider.fetchPreview functor. ``` static Texture2D FetchPreview(SearchItem item, SearchContext context, Vector2 size, FetchPreviewOptions options) { var obj = O...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4e113b33ea48
unity_docs
scripting
What is `Handles.PositionHandle` in Unity? Explain its purpose and usage.
Handles.PositionHandle Declaration public static Vector3 PositionHandle ( Vector3 position , Quaternion rotation ); Declaration public static Vector3 PositionHandle ( Handles.PositionHandleIds ids , Vector3 position , Quaternion rotation ); Parameters Parameter Description position The ce...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b68fc0e57b13
unity_docs
rendering
What are the parameters of `AssetPostprocessor.OnPreprocessMaterialDescription` in Unity?
Description Add this function to a subclass to recieve a notification when a new material is created during the import of a ModelImporter. Unity only calls this function if you set ModelImporter.materialImportMode to ModelImporterMaterialImportMode.ImportViaMaterialDescription. This function gives you control over mate...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1b42b36daae2
unity_docs
math
What is `DragAndDrop.objectReferences` in Unity? Explain its purpose and usage.
DragAndDrop.objectReferences public static Object[] objectReferences ; Description References to objects being dragged. Never returns null. If no object references are available returns an empty array. Additional resources: paths , PrepareStartDrag , StartDrag .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_138adb7297e3
unity_docs
physics
Explain 'Supported rich text tags' in Unity.
The following table lists all the supported rich text tags: Tag Description Example <a> Define a hyperlink. Use the href attribute to define the hyperlink URL. Note : This tag has a fixed limit of 256 characters. <a href="https://www.unity.com">Visit Unity!</a> <align> Change the text’s horizontal alignment. The suppor...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_fa029c952c1f
unity_docs
math
What is `Rendering.BlendShapeBufferLayout.PerVertex` in Unity? Explain its purpose and usage.
BlendShapeBufferLayout.PerVertex Description Order the data by mesh vertex. When you call Mesh.GetBlendShapeBuffer with this option, it returns a GraphicsBuffer containing blend shape vertex data ordered by mesh vertex. In this buffer, each blend shape vertex comprises: An int that represents the index of the ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ccfa4deceb21
unity_docs
animation
What are the parameters of `Animations.AnimatorController.FindStateMachineBehaviourContext` in Unity?
Returns StateMachineBehaviourContext[] Returns the State Machine Behaviour edition context. Description Use this function to retrieve the owner of this behaviour. Please note that this function is very slow. It is not recommended to use this function every frame. Additional resources: StateMachineBehaviourContext . ```...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6635fe17e171
unity_docs
ui
What is `AssetPostprocessorStaticVariableIgnoreAttribute` in Unity? Explain its purpose and usage.
AssetPostprocessorStaticVariableIgnoreAttribute class in UnityEditor Description Allows you to decorate static variables in AssetPostprocessor and ScriptedImporter classes that should be ignored by the static variable warning system in the Import Activity window. This attribute is introduced to decorate static var...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_9979fdc226ad
github
scripting
Write a Unity C# script called Data
```csharp using Unity.Collections; using Unity.Entities; using Unity.Transforms; using Unity.Mathematics; using UnityEngine; namespace Farmer.Core { //Use simple Physic2D.BoxCast to collider with static geometry. Won't handle other ColliderComponent as //those are pure float2 data and not part of PhysX; /...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_64cfcb59e8b2
unity_docs
scripting
Explain 'Import a mesh with LOD settings' in Unity.
You can create meshes with different levels of detail in an external 3D application for use with Unity’s LOD system . If you name these meshes correctly, Unity automatically creates and configures a GameObject with LOD group component for them when it imports the Model. To import a Model with LOD level into Unity, you ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_426aac80b7ab
unity_docs
editor
Show me a Unity code example for 'Tooltip event'.
Description Trickles down Bubbles up Cancellable TooltipEvent Sent just before Unity displays a tooltip. Yes Yes Yes ## Unique properties rect : Rectangle of the hovered visual element in the panel coordinate system. tooltip : The tooltip property is a text string to display inside the tooltip box during the tooltip ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9ad6afe067f1
unity_docs
animation
What is `Animations.MuscleHandle.ctor` in Unity? Explain its purpose and usage.
MuscleHandle.MuscleHandle Constructor Declaration public MuscleHandle ( BodyDof bodyDof ); Declaration public MuscleHandle ( HeadDof headDof ); Declaration public MuscleHandle ( HumanPartDof partDof , LegDof legDof ); Declaration public MuscleHandle ( HumanPartDof partDof , ArmDof armDof );...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_48323b387425
unity_docs
scripting
What is `PropertyDrawer.fieldInfo` in Unity? Explain its purpose and usage.
PropertyDrawer.fieldInfo public FieldInfo fieldInfo ; Description The reflection FieldInfo for the member this property represents. (Read Only) For advanced uses, this allows you to get information about the member the property represents using reflection, such as the type of the property and which attributes i...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_806d48233218
unity_docs
scripting
What is `ParticleSystem.LimitVelocityOverLifetimeModule.enabled` in Unity? Explain its purpose and usage.
ParticleSystem.LimitVelocityOverLifetimeModule.enabled public bool enabled ; Description Specifies whether the LimitForceOverLifetimeModule is enabled or disabled. Additional resources: ParticleSystem.limitForceOverLifetime. ```csharp using UnityEngine; using System.Collections;[RequireComponent(typeof(Partic...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c45003790acd
unity_docs
rendering
What are the parameters of `Texture2D.LoadRawTextureData` in Unity?
Description Sets the raw data of an entire texture in CPU memory. This method sets pixel data for the texture in CPU memory. Texture.isReadable must be true , and you must call Apply after LoadRawTextureData to upload the changed pixels to the GPU. You can also use the following to write to a texture: Texture2D.SetPixe...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_12b70b7bdbb5
unity_docs
scripting
In Unity's 'CurveField', what is 'Create a CurveField' and how does it work?
You can create a CurveField with UI Builder, UXML, or C#. The following C# example creates a CurveField with a default curve: ```csharp using UnityEditor.UIElements; ... // Create a CurveField var curveField = new CurveField(); // Set the curve curveField.value = new AnimationCurve(new Keyframe(0, 0), new Keyframe(1, 1...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8e46d6c7c7c5
unity_docs
audio
What is `AudioImporterSampleSettings.compressionFormat` in Unity? Explain its purpose and usage.
AudioImporterSampleSettings.compressionFormat public AudioCompressionFormat compressionFormat ; Description CompressionFormat defines the compression type that the audio file is encoded to. Different compression types have different performance and audio artifact characteristics.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_996f8214ffdd
unity_docs
rendering
What is `LightingExplorerTableColumn.ComparePropertiesDelegate` in Unity? Explain its purpose and usage.
LightingExplorerTableColumn.ComparePropertiesDelegate Declaration public delegate int ComparePropertiesDelegate ( SerializedProperty lhs , SerializedProperty rhs ); Description A delegate for comparison of properties for sorting.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e8140cbf719d
unity_docs
rendering
What is `SystemInfo.maxComputeWorkGroupSizeZ` in Unity? Explain its purpose and usage.
SystemInfo.maxComputeWorkGroupSizeZ public static int maxComputeWorkGroupSizeZ ; Description The maximum number of work groups that a compute shader can use in Z dimension (Read Only). This is the largest number of work groups (in Z dimension) that a compute shader on the current device can use.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_b9f268790e01
unity_docs
physics
In Unity's 'Introduction to Mesh colliders', what is 'Meshes that change shape at runtime' and how does it work?
The Mesh that you have assigned to the Mesh collider should ideally not change shape at runtime. Every time the Mesh changes shape, the physics engine needs to recalculate the Mesh collider geometry, which causes a substantial performance overhead. For this reason, you should not modify the geometry of a Mesh that a Me...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_bdecb87ea8da
unity_docs
scripting
What is `XR.XRMeshSubsystem.TryGetMeshInfos` in Unity? Explain its purpose and usage.
XRMeshSubsystem.TryGetMeshInfos Declaration public bool TryGetMeshInfos (List<MeshInfo> meshInfosOut ); Parameters Parameter Description meshInfosOut A List of MeshInfo s to be filled. Passing null will throw an ArgumentNullException . Returns bool True if the List was populated. Description ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ac7a01638671
unity_docs
scripting
Show me a Unity C# example demonstrating `Quaternion.y`.
Quaternion.y public float y ; Description Y component of the Quaternion. Don't modify this directly unless you know quaternions inside out. ```csharp //Create three Sliders (Create>UI>Slider) and three Text GameObjects (Create>UI>Text). These are for manipulating the x, y, and z values of the Quaternion. The t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c7479a8fe57a
unity_docs
scripting
Show me a Unity C# example demonstrating `Transform.localPosition`.
Transform.localPosition public Vector3 localPosition ; Description Position of the transform relative to the parent transform. If the transform has no parent, it is the same as Transform.position . ```csharp using UnityEngine; using System.Collections;public class ExampleClass : MonoBehaviour { void Examp...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a8dba6288fcd
unity_docs
physics
Show me a Unity C# example demonstrating `ApplicationTitleDescriptor.title`.
ApplicationTitleDescriptor.title public string title ; Description Setting this field will set the complete editor title without using any of the other fields of ApplicationTitleDescriptor . ```csharp using UnityEditor; using UnityEngine; public class WindowTitleExample { private static void CustomTitleBar(A...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2613b0efdf62
unity_docs
rendering
What is `Texture2DArray.ctor` in Unity? Explain its purpose and usage.
Texture2DArray Constructor Declaration public Texture2DArray (int width , int height , int depth , TextureFormat textureFormat , bool mipChain , bool linear = false); Declaration public Texture2DArray (int width , int height , int depth , TextureFormat textureFormat , bool mipChain , bool linea...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0bbd95d2cb2f
unity_docs
editor
Show me a Unity C# example demonstrating `AssetDatabase.RemoveUnusedAssetBundleNames`.
AssetDatabase.RemoveUnusedAssetBundleNames Declaration public static void RemoveUnusedAssetBundleNames (); Description Remove all the unused AssetBundle names in the Asset Database. ```csharp using System.Linq; using UnityEngine; using UnityEditor;public class AssetDatabaseExamples : MonoBehaviour { [MenuItem(...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b9a2fab4ac9c
unity_docs
math
What is `Mesh.GetColors` in Unity? Explain its purpose and usage.
Mesh.GetColors Declaration public void GetColors (List<Color> colors ); Declaration public void GetColors (List<Color32> colors ); Parameters Parameter Description colors A list of vertex colors to populate. Description Gets the vertex colors of the Mesh. The color at each index corresponds to the v...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8cfeb50d4269
unity_docs
rendering
What is `TerrainTools.PaintContext.GatherHeightmap` in Unity? Explain its purpose and usage.
PaintContext.GatherHeightmap Declaration public void GatherHeightmap (); Description Gathers the heightmap information into sourceRenderTexture . This function collects the heightmap data from all Terrain tiles in the PaintContext into sourceRenderTexture . This function is called internally by TerrainPain...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_43356a17141f
unity_docs
scripting
Show me a Unity code example for 'Create a custom Inspector'.
y . ## Create a new MonoBehaviour To create a custom Inspector, first define a custom class that inherits from a MonoBehaviour . The custom class represents a simple car with several properties. Create a project in Unity with any template. In your Project window , create a folder named create-a-custom-inspector to st...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_16c791c79798
unity_docs
rendering
In Unity's 'Forward rendering path in the Built-In Render Pipeline', what is 'Render passes' and how does it work?
For each GameObject, Unity first renders the Base Pass, which renders the following: One per-pixel light that affects the GameObject. All the per-vertex and spherical harmonics (SH) lights that affect the GameObject. Lightmap data for the GameObject Ambient lighting Emissive lighting Shadows from directional lights Not...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ae386bdaa615
unity_docs
math
What is `HandleUtility.WorldToGUIPoint` in Unity? Explain its purpose and usage.
HandleUtility.WorldToGUIPoint Declaration public static Vector2 WorldToGUIPoint ( Vector3 world ); Parameters Parameter Description world Point in world space. Description Convert a world space point to a 2D GUI position.. Uses the current camera to calculate the projection. Returns GUI x/y and view-s...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9e1547655faa
unity_docs
rendering
Show me a Unity C# example demonstrating `Search.FuzzySearch.FuzzyMatch`.
ring. origin The string the method is searching. outScore If there is a match, this parameter contains the match score. The higher the match score, the closer the pattern matched a part of the given string. matches List of indices in the string where the pattern was found. Returns bool Returns true if a match...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3c4cecaaebcd
unity_docs
math
What is `GL.LINE_STRIP` in Unity? Explain its purpose and usage.
GL.LINE_STRIP public static int LINE_STRIP ; Description Mode for Begin : draw line strip. Draws lines between each vertex passed, from the beginning to the end. If you pass three vertices, A, B and C, two lines are drawn: one between A and B, and one between B and C. To set up the screen for drawing in 2D, us...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4142228b67e4
unity_docs
math
What is `Matrix4x4.Inverse3DAffine` in Unity? Explain its purpose and usage.
Matrix4x4.Inverse3DAffine Declaration public static bool Inverse3DAffine ( Matrix4x4 input , ref Matrix4x4 result ); Parameters Parameter Description input Input matrix to invert. result The result of the inversion. Equal to the input matrix if the function fails. Returns bool Returns true and a va...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1ca4cd82cd85
unity_docs
animation
What is `Animator.StopRecording` in Unity? Explain its purpose and usage.
Animator.StopRecording Declaration public void StopRecording (); Description Stops animator record mode. A call to StopRecording will lock the recording buffer's contents in its current state. The data get saved for subsequent playback with StartPlayback . Additional resources: StartRecording , recorderSt...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7a152f73caa7
unity_docs
rendering
Show me a Unity C# example demonstrating `AssetDatabase.SaveAssets`.
asset changes to disk. Identical to EditorApplication.SaveAssets except not permitted to be called during serialization. When calling this function, AssetModificationProcessor.OnWillSaveAssets will be invoked, allowing you to override which files are saved to disk. EditorApplication.SaveAssets will be deprecated ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c620e27995fa
unity_docs
editor
What is `iOS.Xcode.PBXProject.AddRemotePackageReferenceAtVersionUpToNextMinor` in Unity? Explain its purpose and usage.
PBXProject.AddRemotePackageReferenceAtVersionUpToNextMinor Declaration public string AddRemotePackageReferenceAtVersionUpToNextMinor (string url , string version ); Parameters Parameter Description url The URL of the repository. version The version to use. Returns string Returns the GUID of the remote...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d1e51021cc24
unity_docs
scripting
What is `Progress.GetTotalSteps` in Unity? Explain its purpose and usage.
Progress.GetTotalSteps Declaration public static int GetTotalSteps (int id ); Parameters Parameter Description id The progress indicator's unique ID. Returns int The number of steps. Description Gets the total number of steps, from start to finish, for a progress indicator. Returns -1 if you don't u...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0dcb4a0e175d
unity_docs
rendering
What is `UnityEngine.NVIDIAModule` in Unity? Explain its purpose and usage.
UnityEngine.NVIDIAModule Description A module that contains API you can use to interact with NVIDIA graphics cards. To activate this module at runtime, call NVIDIA.Plugins.LoadPlugin with the NVIDIA.Plugins.Plugin.NVUnityPlugin value during application startup. The class NVIDIA.Device contains the APIs to interact ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8dd4a46cf372
unity_docs
rendering
What is `ParticleSystem.RotationBySpeedModule.separateAxes` in Unity? Explain its purpose and usage.
ParticleSystem.RotationBySpeedModule.separateAxes public bool separateAxes ; Description Set the rotation by speed on each axis separately. When disabled, only the z-axis rotation curve is used. ```csharp using UnityEngine; using System.Collections;[RequireComponent(typeof(ParticleSystem))] public class Examp...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e8d33db827da
unity_docs
rendering
What is `Experimental.Rendering.GraphicsFormatUtility.IsASTCFormat` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphicsFormatUtility.IsASTCFormat Declaration public static bool IsASTCFormat ( Experimental.Rendering.GraphicsFormat format ); Declaration public static bool IsASTCFormat ( TextureFormat format ); Description Return...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_810998be8d42
unity_docs
scripting
What is `Android.AndroidAssetPackInfo.bytesDownloaded` in Unity? Explain its purpose and usage.
AndroidAssetPackInfo.bytesDownloaded public ulong bytesDownloaded ; Description The downloaded size of the Android asset pack in bytes. Read-only. Additional resources: AndroidAssetPacks.DownloadAssetPackAsync .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d1c1009b0312
unity_docs
scripting
What is `ColorUsageAttribute` in Unity? Explain its purpose and usage.
ColorUsageAttribute class in UnityEngine / Inherits from: PropertyAttribute / Implemented in: UnityEngine.CoreModule Description Attribute used to configure the usage of the ColorField and Color Picker for a color. Use this attribute on a Color to configure the Color Field and Color Picker to show/hide the al...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4ec65298c604
unity_docs
ui
What is `EditorWindow.Close` in Unity? Explain its purpose and usage.
EditorWindow.Close Declaration public void Close (); Description Close the editor window. This will destroy the editor window. Simple example to show Close() ```csharp using UnityEditor; using UnityEngine; using UnityEngine.UIElements; public class CloseWindow : EditorWindow { [MenuItem("Examples/Close Wind...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_cfea2a85f316
unity_docs
math
Show me a Unity code example for 'BoundsIntField'.
The BoundsIntField lets users enter a BoundsInt value in a UI. Note : To align an element with other fields in an Inspector window, simply apply the.unity-base-field__aligned USS class to it. For more information, refer to BaseField . ## Create a BoundsIntField You can create a BoundsIntField with UI Builder, UXML, o...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_1724f442d80c_doc_18
github
scripting
What does `GetFromUnity_Axes` do in this Unity script? Explain its purpose and signature.
Returns a basis-change matrix that transforms from Unity axis conventions tothe conventions specified in the payload.Does *not* perform unit conversion, hence the name. Signature: ```csharp public static Matrix4x4 GetFromUnity_Axes(SceneStatePayload payload) ```
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_87c08a630603
unity_docs
rendering
In Unity's '2D and 3D projects', what is 'Orthographic 3D' and how does it work?
Sometimes games use 3D geometry, but use an orthographic camera instead of perspective. This is a common technique used in games which give you a bird’s-eye view of the action, and is sometimes called “2.5D”. If you’re making a game like this, you should also use the Editor in 3D mode, because even though there is no p...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_075ad66e4c74
unity_docs
rendering
Explain 'Built-in shader variables reference' in Unity.
Unity’s built-in include files contain global variables for your shaders : things like current object’s transformation matrices, light parameters, current time and so on. You use them in shader programs like any other variable, but if you include the relevant include file, you don’t have to declare them. For more infor...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_dced5a5b2ed2
unity_docs
rendering
What is `Rendering.SupportedRenderingFeatures.defaultMixedLightingModes` in Unity? Explain its purpose and usage.
SupportedRenderingFeatures.defaultMixedLightingModes public Rendering.SupportedRenderingFeatures.LightmapMixedBakeModes defaultMixedLightingModes ; Description This is the fallback mode if the mode the user had previously selected is no longer available. See SupportedRenderingFeatures.mixedLightingModes .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_d70275dad93a
unity_docs
rendering
In Unity's 'Particle size', what is 'Changing particle size over the particle’s lifetime' and how does it work?
The Size Over Lifetime module can change a particle’s size based on how long it has existed. Some particles will typically change in size as they move away from the point of emission, such as those that represent gases, flames or smoke. For example, smoke will tend to disperse and occupy a larger volume over time. You ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5f1e77e774eb
unity_docs
scripting
What is `ParticleSystem.LimitVelocityOverLifetimeModule.limitZ` in Unity? Explain its purpose and usage.
ParticleSystem.LimitVelocityOverLifetimeModule.limitZ public ParticleSystem.MinMaxCurve limitZ ; Description Maximum velocity curve for the z-axis. Additional resources: MinMaxCurve . ```csharp using UnityEngine; using System.Collections;[RequireComponent(typeof(ParticleSystem))] public class ExampleClass ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_d6ab0f579aef
unity_docs
physics
In Unity's 'Optimizing arrays', what is 'Alternative non-allocating APIs' and how does it work?
Some Unity APIs have alternative versions that don’t cause memory allocations. You should use these when possible. The following table contains an example of allocating APIs and their non-allocating alternatives: Allocating API Non-allocating API alternative Physics.RaycastAll Physics.RaycastNonAlloc Animator.parameter...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ee0992d47a37
unity_docs
physics
What is `MonoBehaviour.OnTriggerEnter2D` in Unity? Explain its purpose and usage.
MonoBehaviour.OnTriggerEnter2D(Collider2D) Parameters Parameter Description other The other Collider2D involved in this collision. Description Sent when another object enters a trigger collider attached to this object (2D physics only). Further information about the other collider is reported in the Collider2...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_152f649b758e
unity_docs
scripting
Show me a Unity C# example demonstrating `ParticleSystem.CollisionModule.bounceMultiplier`.
ParticleSystem.CollisionModule.bounceMultiplier public float bounceMultiplier ; Description A multiplier for ParticleSystem.CollisionModule.bounce . Changing this property is more efficient than accessing the entire curve, if you only want to change the overall bounce multiplier. ```csharp using UnityEngine;...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4fcf750d18ce
unity_docs
scripting
Give me an overview of the `PivotRotation` class in Unity.
PivotRotation enumeration Description How is the tool handle oriented. Properties Property Description Local The tool handle is oriented from the active object. Global The tool handle is aligned along the global axes.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_16d139f757be
unity_docs
math
What is `AnimatedValues.AnimQuaternion` in Unity? Explain its purpose and usage.
AnimQuaternion class in UnityEditor.AnimatedValues / Inherits from: AnimatedValues.BaseAnimValueNonAlloc_1 Description An animated Quaternion value. Animated using Quaternion.Slerp . Constructors Constructor Description AnimQuaternion Constructor. Protected Methods Method Description GetValue Type spec...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f1b7e620c8bd
unity_docs
performance
What is `Rendering.RenderingThreadingMode.NativeGraphicsJobsWithoutRenderThread` in Unity? Explain its purpose and usage.
RenderingThreadingMode.NativeGraphicsJobsWithoutRenderThread Description Generates intermediate graphics commands via several worker threads and converts them into low-level platform API graphics commands. In this mode, the main thread processes the application's high-level code and issues an intermediate represent...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_3300450c2acb_doc_1
github
scripting
What does `CreateScript` do in this Unity script? Explain its purpose and signature.
Create script with args using Signature: ```csharp public abstract GeneratedScript CreateScript(Type type, params object[] args); ```
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_sr_4db5fe7dff5c
unity_docs
scripting
What is `Experimental.Rendering.GraphicsFormat.RGBA_BC7_UNorm` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphicsFormat.RGBA_BC7_UNorm Description A four-component, block-compressed format where each 128-bit compressed texel block encodes a 4×4 rectangle of unsigned normalized RGBA texel data.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_8c21f425961f_doc_0
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
Attribute to enable an inspector checkbox fortoggling the state at edit-time. Mostly used for Toggle state. Signature: ```csharp public class EditableTimedFlagAttribute : PropertyAttribute ```
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
local_man_8c9da70f0dfc
unity_docs
rendering
In Unity's 'Get started with text', what is 'Create a static font asset' and how does it work?
Create a static font asset and apply it to the Button control. For a static font asset, you don’t need to include the source font file in the build. However, you must generate atlas for all the characters in the Button’s display text. The display text is This is a Button and you will add a * in the text, so you generat...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_905b0612f511
unity_docs
rendering
Show me a Unity C# example demonstrating `Texture2D.GetPixelBilinear`.
te y maps to pixel y % height. Mirror , or MirrorOnce : Not supported, Unity will behave like Clamp . GetPixelBilinear runs on the CPU, and behaves identically on all platforms and graphics APIs. Bilinear filtering on a GPU might behave differently, for example pixels might be offset by half a pixel. To match this...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_90c1ca9a723b
unity_docs
editor
Explain 'Editor Diagnostics preferences reference' in Unity.
When you report a problem to Unity, the Unity Support Team might need you to enable diagnostic switches to help identify the cause. Running diagnostics on an application, whether in the Editor or a Player, impacts performance and user experience. You should only run diagnostics when the Unity Support Team requires them...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5b57e177e9b8
unity_docs
physics
What are the parameters of `PhysicsShapeGroup2D.GetShapeVertices` in Unity?
Description Gets a copy of the shape vertices in the PhysicsShapeGroup2D . NOTE : Because this is a copy, changing the specified shape vertices list afterwards will not change the PhysicsShapeGroup2D . ```csharp using System.Collections.Generic; using UnityEngine; using UnityEngine.Assertions;public class Example : Mon...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ef0fbe466aaf
unity_docs
scripting
What is `ParticleSystem.NoiseModule.frequency` in Unity? Explain its purpose and usage.
ParticleSystem.NoiseModule.frequency public float frequency ; Description Low values create soft, smooth noise, and high values create rapidly changing noise. ```csharp using UnityEngine; using System.Collections;[RequireComponent(typeof(ParticleSystem))] public class ExampleClass : MonoBehaviour { private Pa...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f051fe113c45
unity_docs
rendering
Show me a Unity C# example demonstrating `ImageConversion.EncodeToTGA`.
encoded data as a file or send it over the network without further processing. This function does not work on any compressed format. Texture.isReadable must be true . The encoded TGA data will be uncompressed 8bit grayscale, RGB or RGBA (depending on the passed in format). For single-channel red textures ( R8 , R...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_0f097c564f9f
unity_docs
ui
Explain 'Bind to a list without ListView' in Unity.
Version : 2023.2+ You can bind to a list without ListView. To do so, bind each element to an item in the array of the serialized object and track the value of the array size. The array size might change in certain situations, such as an undo or reset operation. This example demonstrates how to bind to a list without Li...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_363195ba7d6f
unity_docs
xr
What is `Application.runInBackground` in Unity? Explain its purpose and usage.
Application.runInBackground public static bool runInBackground ; Description Determines whether the Player should run when the application is in the background By default, this is set to false and the application pauses when it is in the background. Android : This property works in Android only if the applicati...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3f16ca213d10
unity_docs
editor
What is `FilePathAttribute.Location.PreferencesFolder` in Unity? Explain its purpose and usage.
FilePathAttribute.Location.PreferencesFolder Description Use this location to save a file relative to the preferences folder. Useful for per-user files that are across all projects. Location of the Preferences folder across operating systems: Windows: C:/Users/[username]/AppData/Roaming/Unity/Editor-5.x/Preferenc...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_84f5f17dca3e
unity_docs
scripting
What is `Animations.BlendTree` in Unity? Explain its purpose and usage.
BlendTree class in UnityEditor.Animations / Inherits from: Motion Description Blend trees are used to blend continuously animation between their children. They can either be 1D or 2D. Properties Property Description blendParameter Parameter that is used to compute the blending weight of the children in 1D bl...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4a43d0f8fb38
unity_docs
scripting
What is `Unity.Android.Gradle.Element` in Unity? Explain its purpose and usage.
Element class in Unity.Android.Gradle / Inherits from: Unity.Android.Gradle.BaseElement Description An empty element that can be set to any string. Constructors Constructor Description Element Element constructor. Public Methods Method Description GetUniqueName Gets the unique name of the element. Elemen...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b72e4181388b
unity_docs
scripting
What is `Serialization.ManagedReferenceUtility.GetManagedReferenceIds` in Unity? Explain its purpose and usage.
ManagedReferenceUtility.GetManagedReferenceIds Declaration public static long[] GetManagedReferenceIds ( Object obj ); Parameters Parameter Description hostObj The host object that supports SerializeReference . For example, MonoBehaviour or ScriptableObject . Returns long[] Returns a list of the mos...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8cebe8bb0661
unity_docs
scripting
Show me a Unity C# example demonstrating `Event.isKey`.
Event.isKey public bool isKey ; Description Is this event a keyboard event? (Read Only) ```csharp using UnityEngine;public class Example : MonoBehaviour { // Detects any keyboard event void OnGUI() { Event e = Event.current; if (e.isKey) { Debug.Log("Detected a keyboard event!"); } } } ```
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0c133a9e430e
unity_docs
scripting
What is `Rendering.SupportedOnRenderPipelineAttribute.IsTypeSupportedOnRenderPipeline` in Unity? Explain its purpose and usage.
SupportedOnRenderPipelineAttribute.IsTypeSupportedOnRenderPipeline Declaration public static bool IsTypeSupportedOnRenderPipeline (Type type , Type renderPipelineAssetType ); Parameters Parameter Description type The type you want to check. renderPipelineAssetType RenderPipelineAsset type. Returns bool...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b095797d4fb4
unity_docs
physics
Give me an overview of the `ContactPoint` class in Unity.
ContactPoint struct in UnityEngine / Implemented in: UnityEngine.PhysicsModule Description Describes a contact point where the collision occurs. Contact points are stored in Collision structure. Additional resources: Collision , Collider.OnCollisionEnter , Collider.OnCollisionStay , Collider.OnCollisionEx...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.