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_b2d5a4361d35 | unity_docs | scripting | Give me an overview of the `GridPalette` class in Unity. | GridPalette
class in
UnityEditor
/
Inherits from:
ScriptableObject
Description
GridPalette stores settings for Palette assets when shown in the Palette window.
Properties
Property
Description
cellSizing
Determines the sizing of cells for a Palette.
transparencySortAxis
Determines the sorting axis if the Tra... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4b27fb732f8f | unity_docs | scripting | What is `Experimental.GraphView.PlacematContainer.PlacematsLayer` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
PlacematContainer.PlacematsLayer
public static int
PlacematsLayer
;
Description
The layer index for placing a PlacematContainer in a GraphView. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a3a388a6d397 | unity_docs | scripting | Show me a Unity C# example demonstrating `Cloth.ClearTransformMotion`. | otion of the cloth.
You can call ClearTransformMotion on the cloth to change this behavior. Calling ClearTransformMotion will move the cloth simulation particles along with the transform, so that the transform movement has no effect on the cloth simulation. This is useful if you want to teleport Characters from one poi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f3fd3769dce0 | unity_docs | networking | What is `Android.AndroidNavigationHidden` in Unity? Explain its purpose and usage. | AndroidNavigationHidden
enumeration
Description
Options to indicate whether the 5-way or DPAD navigation methods are available on the device.
Additional resources:
AndroidConfiguration.navigationHidden
Properties
Property
Description
Undefined
Mirrors the Android property value NAVIGATIONHIDDEN_UNDEFINED.
No... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_08f9db1e1821 | unity_docs | scripting | What is `GUILayoutUtility.GetAspectRect` in Unity? Explain its purpose and usage. | GUILayoutUtility.GetAspectRect
Declaration
public static
Rect
GetAspectRect
(float
aspect
);
Declaration
public static
Rect
GetAspectRect
(float
aspect
,
GUIStyle
style
);
Declaration
public static
Rect
GetAspectRect
(float
aspect
,
params GUILayoutOption[]
options
);
Declaration
public stati... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e9f8e00df928 | unity_docs | input | What is `Camera.ScreenToViewportPoint` in Unity? Explain its purpose and usage. | Camera.ScreenToViewportPoint
Declaration
public
Vector3
ScreenToViewportPoint
(
Vector3
position
);
Description
Transforms
position
from screen space into viewport space.
Screen space is defined in pixels. The bottom-left of the screen is (0,0); the right-top
is (
pixelWidth
,
pixelHeight
). The z positi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2baea94b24a2 | unity_docs | rendering | What is `EditorGUIUtility.PixelsToPoints` in Unity? Explain its purpose and usage. | EditorGUIUtility.PixelsToPoints
Description
Convert from pixel space to point space.
Use this to convert values from custom content for use in GUI. For instance, you might be rendering a camera to a render texture, and then drawing GUI on top of that. Screen positions from the camera will be in pixel space, and nee... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7c35e4fdb37d | unity_docs | scripting | What is `Experimental.GraphView.TokenNode.output` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
TokenNode.output
public
Experimental.GraphView.Port
output
;
Description
The output Port of the TokenNode. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a33fe79ab71c | unity_docs | rendering | Show me a Unity C# example demonstrating `Mesh.GetBoneWeightBuffer`. | s possible to access the buffer with a lower SkinWeigts setting, for instance a mesh with
SkinWeights.Unlimited
can be accessed with
SkinWeights.FourBones
and
SkinWeights.TwoBones
. However, a mesh with
SkinWeights.FourBones
can not be accessed using
SkinWeights.Unlimited
.
Mesh.isReadable
does not need to be ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4dc241500997 | unity_docs | rendering | Explain 'Preview a cubemap array' in Unity. | To preview a cubemap array in the Inspector window, navigate to the
Project window
and select the Texture Asset. The Texture import settings for this Texture Asset are now visible in the Inspector, and Unity renders a preview of the cubemap array at the bottom of the Inspector.
The following controls are available in t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3eba845fd4e1 | unity_docs | rendering | What is `LineRenderer.textureScale` in Unity? Explain its purpose and usage. | LineRenderer.textureScale
public
Vector2
textureScale
;
Description
A multiplier for the UV coordinates of the line texture.
```csharp
using UnityEngine;
using System.Collections;
using UnityEditor;[RequireComponent(typeof(LineRenderer))]
public class ExampleClass : MonoBehaviour
{
public LineTextureMode te... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8f84284d63df | unity_docs | scripting | What is `XR.MeshGenerationResult.Rotation` in Unity? Explain its purpose and usage. | MeshGenerationResult.Rotation
public
Quaternion
Rotation
;
Description
The rotation associated with the generated mesh relative to the session origin.
This value will be
Quaternion.identity
unless the
MeshGenerationOptions.ConsumeTransform
flag was provided to
XRMeshSubsystem.GenerateMeshAsync
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6399b920bffd | unity_docs | scripting | What is `ParticleSystem.ColorBySpeedModule.enabled` in Unity? Explain its purpose and usage. | ParticleSystem.ColorBySpeedModule.enabled
public bool
enabled
;
Description
Specifies whether the ColorBySpeedModule is enabled or disabled.
Additional resources:
ParticleSystem.colorBySpeed
.
```csharp
using UnityEngine;
using System.Collections;[RequireComponent(typeof(ParticleSystem))]
public class Exampl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e0edfcc423bb | unity_docs | rendering | What is `Experimental.GlobalIllumination.RectangleLight.falloff` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
RectangleLight.falloff
public
Experimental.GlobalIllumination.FalloffType
falloff
;
Description
The falloff model to use for baking the rectangular light.
Additional resources:
FalloffType
.
NOTE: This only applies to the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8e8f32cae275 | unity_docs | scripting | What is `Experimental.GraphView.GraphElement.IsSnappable` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphElement.IsSnappable
Declaration
public bool
IsSnappable
();
Returns
bool
Returns true if the GraphElement is snappable. Returns false otherwise.
Description
Checks whether the GraphElement is snappable. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_11b4cebba7ea | unity_docs | ui | Explain 'MinMaxSlider' in Unity. | The MinMaxSlider element is a slider that lets users select a range of values within a specified minimum and maximum range. You can use it to set a range of values for various parameters, such as volume levels, character stats, or other numerical values in your UI. To use it, define the minimum and maximum values, and ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d8157ddc59e7 | unity_docs | performance | What is `AI.NavMeshBuildSettings.tileSize` in Unity? Explain its purpose and usage. | NavMeshBuildSettings.tileSize
public int
tileSize
;
Description
Sets the tile size in voxel units.
The NavMesh is built in square tiles in order to build the mesh in parallel and to control maximum memory usage. It also helps to make the carving changes more local. If you plan to update NavMesh at runtime, a go... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a6ead423258f | unity_docs | performance | What is `Unity.Profiling.ProfilerFlowEventType` in Unity? Explain its purpose and usage. | ProfilerFlowEventType
enumeration
Description
Defines Profiler flow event type.
Properties
Property
Description
Begin
Use for the flow start point.
ParallelNext
Use for the parallel flow continuation point.
End
Use for the flow end point.
Next
Use for the flow continuation point. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_978f291058a3 | unity_docs | editor | Show me a Unity C# example demonstrating `VersionControl.VersionControlObject.OnActivate`. | ation
public void
OnActivate
();
Description
Called when your version control system is activated.
This happens when user selects new VCS from Version Control settings window, when it gets activated from script, or during Unity startup.
Unity calls this method to inform your
VersionControlObject
that it's now a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b0af65b6564d | unity_docs | rendering | In Unity's 'Animation clips', what is 'Create and edit animation clips within Unity' and how does it work? | You can also create and edit animation clips in Unity’s Animation window. These clips can animate:
The position, rotation, and scale of
GameObjects
.
Component properties such as material color, the intensity of a light, and the volume of a sound.
Properties within your own scripts including float, integer, enum, vecto... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_61bcb158971d | github | scripting | Write a Unity C# script called Pacman View | ```csharp
using PacEngine.characters;
using DG.Tweening;
using PacEngine;
using UnityEngine;
public class PacmanView : AbstractCharacterView
{
private const string ANIMATOR_DIE = "Die";
private const string ANIMATOR_WALK = "Walk";
private Pacman EnginePacmanCharacter => (Pacman)EngineCharacter;... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_man_01f122663ae9 | unity_docs | rendering | Explain 'Introduction to rendering paths in the Built-In Render Pipeline' in Unity. | Unity’s Built-In
Render Pipeline
supports different rendering paths. A
rendering path
is a series of operations related to lighting and shading. Different rendering paths have different capabilities and performance characteristics. Deciding on which rendering path is most suitable for your Project depends on the type o... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_8f26f408d767 | unity_docs | scripting | Explain 'Scene templates' in Unity. | Use scene templates to create reusable scenes in your project. You can configure scene templates so that they contain basic starting assets and settings that you can then reuse across your project.
Topic Description Scene templates introduction
Use scene templates to create scenes with pre-defined settings.
Creating sc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_920e9121102d | unity_docs | editor | What is `Search.SearchIndexer.AddNumber` in Unity? Explain its purpose and usage. | SearchIndexer.AddNumber
Declaration
public void
AddNumber
(string
key
,
double
value
,
int
score
,
int
documentIndex
);
Parameters
Parameter
Description
key
Key used to retrieve the value.
value
Number value to store in the index.
score
Relevance score of the word.
documentIndex
Document where the i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_65fd9ab38303 | unity_docs | xr | What is `Networking.UnityWebRequest.GenerateBoundary` in Unity? Explain its purpose and usage. | UnityWebRequest.GenerateBoundary
Declaration
public static byte[]
GenerateBoundary
();
Returns
byte[]
40 random bytes, guaranteed to contain only printable ASCII values.
Description
Generate a random 40-byte array for use as a multipart form boundary. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_51a48c32d17d | unity_docs | editor | Give me an overview of the `AndroidSdkVersions` class in Unity. | AndroidSdkVersions
enumeration
Description
The Android API levels to specify in scripts.
Note
: The lowest API level listed here strictly corresponds to the lowest supported API level. However, do not use these values to determine the highest supported API level.
The following code example demonstrates how you ca... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_99edc6b07b0c | unity_docs | scripting | Explain 'Smooth Height' in Unity. | The Smooth Height tool smooths the heightmap and softens Terrain features. In the Terrain Inspector , select
Paint Terrain
, and select
Smooth Height
from the list of Terrain tools.
To access the
Set Height
tool from an overlay:
In the
Terrain Tools
overlay, select
Sculpt Mode
. Sculpt Mode tools display at the end of ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f0b973561bf1 | unity_docs | scripting | Give me an overview of the `Resources` class in Unity. | Resources
class in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
The Resources class allows you to find and access objects including assets.
When you build your project, all assets in any
Resources
folders are included in the built Player. You can then load these assets at runtime using
Re... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_3c7ba9861ed7 | unity_docs | rendering | In Unity's 'Model Import Settings reference', what is 'Animation' and how does it work? | Contains settings for animation clips. You can define any series of different poses that happen over a set of frames, such as walking, running, or idling as an
animation clip
. You can reuse clips for any model that has an identical rig. Often a single file contains several different actions, each of which you can defi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_863c018c5adb | unity_docs | editor | What is `EditorApplication.isUpdating` in Unity? Explain its purpose and usage. | EditorApplication.isUpdating
public static bool
isUpdating
;
Description
True if the Editor is currently refreshing the AssetDatabase.
During AssetDatabase refreshing time, the editor checks to see if any files have changed,
whether they need to be reimported, and reimports them. The isUpdating property will r... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c7f161b75175 | unity_docs | rendering | What is `ParticleSystem.LightsModule.enabled` in Unity? Explain its purpose and usage. | ParticleSystem.LightsModule.enabled
public bool
enabled
;
Description
Specifies whether the LightsModule is enabled or disabled.
Additional resources:
ParticleSystem.lights
.
```csharp
using UnityEngine;
using System.Collections;// For best results, use Deferred Rendering (see Camera settings)
[RequireCompon... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_28835f3a448f | unity_docs | editor | What is `Menu.SetChecked` in Unity? Explain its purpose and usage. | Menu.SetChecked
Declaration
public static void
SetChecked
(string
menuPath
,
bool
isChecked
);
Description
Sets the check status of a menu item.
The check status of a menu item is cleared when the Editor restarts.
```csharp
using UnityEditor;
using UnityEngine; public class CheckMenuTest: MonoBehaviour
{
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_be5d5910889c | unity_docs | editor | Explain 'Engineering feature set' in Unity. | The Engineering
feature set
contains packages for integration of C# integrated development environments (IDEs), unit testing, code coverage and performance analysis.
## Getting started
For a list of IDEs Unity supports, refer to
Integrated development environment (IDE) support
.
To choose which IDE to use with the Un... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ead85a0771c2 | unity_docs | scripting | Show me a Unity C# example demonstrating `Gizmos.DrawLine`. | Gizmos.DrawLine
Declaration
public static void
DrawLine
(
Vector3
from
,
Vector3
to
);
Description
Draws a line starting at
from
towards
to
.
If you need to draw many lines consider the
Gizmos.DrawLineList
or
Gizmos.DrawLineStrip
functions which are much faster than repeatedly calling this function ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8af676245274 | unity_docs | scripting | What is `AI.NavMeshAgent.agentTypeID` in Unity? Explain its purpose and usage. | NavMeshAgent.agentTypeID
public int
agentTypeID
;
Description
The type ID for the agent.
This identifier determines which NavMeshes are available for the Agent to move on. See also
NavMeshBuildSettings.agentTypeID
. Changing this ID will reset the Agent's current path. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ec808cbd1d05 | unity_docs | rendering | Show me a Unity code example for 'ShaderLab: legacy fog'. | alpha value, only its RGB components.
## Valid parameter values
Parameter Value Function Mode Off
Do not apply built-in fog to this Pass.
Global
Apply built-in fog to this Pass, based on the project settings.
Note that if fog is disabled in the project settings, Unity will not apply it to this Pass.
## Examples
Thi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_740766eb0399 | unity_docs | scripting | What is `Unity.Android.Gradle.Dependencies.AddDependencyImplementationByName` in Unity? Explain its purpose and usage. | Dependencies.AddDependencyImplementationByName
Declaration
public
Unity.Android.Gradle.Element
AddDependencyImplementationByName
(string
name
);
Parameters
Parameter
Description
name
Implementation name.
Returns
Element
The added dependency.
Description
Adds a plugin implementation element with nam... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b4763237cc6b | unity_docs | scripting | Show me a Unity C# example demonstrating `Search.SearchExpressionType.Variadic`. | SearchExpressionType.Variadic
Description
Used in
SearchExpressionEvaluatorAttribute
to specify that a parameter can be used multiples times. For example count{Iterable1, Iterable2,... IterableN} can be executed with any number of iterables are parameters.
```csharp
[SearchExpressionEvaluator(SearchExpressionType... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b1c247be0145 | unity_docs | rendering | Explain 'Strip shader variants' in Unity. | You can prevent
shader variants
from being compiled. This is called
stripping
. Stripping unneeded variants can greatly reduce build times, file size,
shader
loading times, and runtime memory usage. In larger projects, or projects with complex shaders, this is a very important consideration.
If you strip a shader varia... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f346cc092f7d | unity_docs | animation | What is `Animator.avatarRoot` in Unity? Explain its purpose and usage. | Animator.avatarRoot
public
Transform
avatarRoot
;
Description
Returns the Avatar root Transform.
The Avatar root Transform specifies where the Avatar hierarchy is nested in the Animator hierarchy. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1d2c1d33f067 | unity_docs | scripting | What is `InspectorNameAttribute` in Unity? Explain its purpose and usage. | InspectorNameAttribute
class in
UnityEngine
/
Inherits from:
PropertyAttribute
/
Implemented in:
UnityEngine.CoreModule
Description
Use this attribute on enum value declarations to change the display name shown in the Inspector.
Additional resources:
SerializedProperty.enumDisplayNames
```csharp
using Unity... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1028647eac54 | unity_docs | scripting | Show me a Unity C# example demonstrating `MonoBehaviour.OnRenderObject`. | function is similar to
OnPostRender
, except OnRenderObject is called on any object
that has a script with the function; no matter if it's attached to a Camera or not.
You should only use this function to draw and not to change any high level rendering states.
Be aware that this function can have a performance impact ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_51bc51b7b17b | unity_docs | scripting | What is `PrimitiveType.Cube` in Unity? Explain its purpose and usage. | PrimitiveType.Cube
Description
A cube primitive.
Additional resources:
GameObject.CreatePrimitive
.
```csharp
using UnityEngine;
using System.Collections;// Creates a cube primitivepublic class ExampleClass : MonoBehaviour
{
void Start()
{
GameObject cube = GameObject.CreatePrimitive(PrimitiveType.Cube);
}
}
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ae213ac8e038 | unity_docs | scripting | Give me an overview of the `AnimationWindow` class in Unity. | AnimationWindow
class in
UnityEditor
/
Inherits from:
EditorWindow
Implements interfaces:
IHasCustomMenu
Description
Use the AnimationWindow class to select and edit Animation clips.
The Animation window will update when selecting Animation clips in the Project window or game objects with Animation players (su... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6ab14e660f32 | unity_docs | scripting | What is `WSA.Launcher` in Unity? Explain its purpose and usage. | Launcher
class in
UnityEngine.WSA
/
Implemented in:
UnityEngine.CoreModule
Description
Class which is capable of launching user's default app for file type or a protocol. See also PlayerSettings where you can specify file or URI associations.
Static Methods
Method
Description
LaunchFile
Launches the default ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_71d4c1742470 | unity_docs | math | What is `AndroidJNI.CallStaticSByteMethod` in Unity? Explain its purpose and usage. | AndroidJNI.CallStaticSByteMethod
Declaration
public static sbyte
CallStaticSByteMethod
(IntPtr
clazz
,
IntPtr
methodID
,
jvalue[]
args
);
Description
Invokes the specified
methodID
static method on a Java object, optionally passing in an array of arguments (
args
).
Additional resources:
Java Native Inter... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_766519a223f3 | unity_docs | scripting | What is `Search.StringView.Contains` in Unity? Explain its purpose and usage. | StringView.Contains
Declaration
public bool
Contains
(char
c
,
stringComparison
ordinal
);
Parameters
Parameter
Description
c
A character.
ordinal
A string comparison option.
Returns
bool
True if the character is found, otherwise false.
Description
Checks if a character is contained in the
String... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_88946ca143da | unity_docs | scripting | In Unity's 'Recommended Player settings to optimize your Web build', what is 'Change the API Compatibility Level' and how does it work? | To change the
API Compatibility Level
via script instead, add this code to one of your
scripts
:
```
PlayerSettings.SetApiCompatibilityLevel(namedBuildTarget, ApiCompatibilityLevel.NET_2_0);
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_42e91994ed34 | unity_docs | ui | Explain 'Introduction to USS' in Unity. | A Unity Style Sheet (USS) is a text file recognized as an asset that supports style rules. The USS text file must have the.uss
extension.
You can use USS files to define the appearance and styles for the UI elements in your games and applications. USS provides a way to separate the appearance and styling of UI elements... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_9670785887e8 | unity_docs | audio | In Unity's 'Audio Parametric Equalizer Effect', what is 'Properties' and how does it work? | Property:
Function:
Center freq
The frequency in Hertz where the gain is applied (range 20.0 to 22000.0, default = 8000.0 Hz).
Octave Range
The number of Octaves over which the gain is applied (Centered on the Center Frequency) (range 0.20 to 5.00, default = 1.0 octave).
Frequency Gain
The gain applied (range 0.05 to 3... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9ecef208c8d0 | unity_docs | rendering | What is `MaterialEditor.EndProperty` in Unity? Explain its purpose and usage. | MaterialEditor.EndProperty
Declaration
public static void
EndProperty
();
Description
Closes a property wrapper that begins with
MaterialEditor.BeginProperty
.
Additional resources:
MaterialEditor.BeginProperty
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5918c1d065d6 | unity_docs | rendering | What is `Device.SystemInfo.supportsRawShadowDepthSampling` in Unity? Explain its purpose and usage. | SystemInfo.supportsRawShadowDepthSampling
public static bool
supportsRawShadowDepthSampling
;
Description
This has the same functionality as
SystemInfo.supportsRawShadowDepthSampling
and also mimics platform-specific behavior in the Unity Editor. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_648e2d409faa | unity_docs | math | What are the parameters of `Bounds.ToString` in Unity? | Description Returns a formatted string for the bounds. Defaults to two digits displayed (format="F2"). For more information, see Microsoft's documentation on Standard numeric format strings . ```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
Bounds bounds = new Bounds(Vec... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bbca755ddaad | unity_docs | editor | What is `EditorApplication.isCompiling` in Unity? Explain its purpose and usage. | EditorApplication.isCompiling
public static bool
isCompiling
;
Description
Is editor currently compiling scripts? (Read Only)
Editor Window that tells you if Unity is compiling scripts.
```csharp
// Small example that shows when scripts are being compiled.using UnityEditor;
using UnityEngine;public class isCom... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ceed2920a913 | unity_docs | rendering | What is `Rendering.CommandBuffer.DispatchRays` in Unity? Explain its purpose and usage. | CommandBuffer.DispatchRays
Declaration
public void
DispatchRays
(
Rendering.RayTracingShader
rayTracingShader
,
string
rayGenName
,
uint
width
,
uint
height
,
uint
depth
,
Camera
camera
);
Declaration
public void
DispatchRays
(
Rendering.RayTracingShader
rayTracingShader
,
string
rayGenName
,
Graphi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8b54ac2a97c4 | unity_docs | physics | Give me an overview of the `AnimatorControllerParameterType` class in Unity. | AnimatorControllerParameterType
enumeration
Description
The type of the parameter.
Can be bool, float, int or trigger.
Properties
Property
Description
Float
Float type parameter.
Int
Int type parameter.
Bool
Boolean type parameter.
Trigger
Trigger type parameter. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4b2b74e59a90 | unity_docs | scripting | What is `IconAttribute` in Unity? Explain its purpose and usage. | IconAttribute
class in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Attribute to specify an icon for a
MonoBehaviour
or
ScriptableObject
.
Properties
Property
Description
path
A project-relative path to a texture.
Constructors
Constructor
Description
IconAttribute
Create an IconAtt... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f296033f3c61 | unity_docs | scripting | In Unity's 'Visual query builder reference', what is 'Toggle the visual query builder' and how does it work? | To use the visual query builder, in the Search window, select
Toggle Query Builder Mode
.
The search field changes to a visual query builder:
To return to the textual search, select
Toggle Query Builder Mode
again. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e02949e3d8f5 | unity_docs | editor | What is `Analytics.AnalyticsSettings.initializeOnStartup` in Unity? Explain its purpose and usage. | AnalyticsSettings.initializeOnStartup
public static bool
initializeOnStartup
;
Description
Controls whether Unity initializes Analytics immediately on startup.
Set this property to false to delay the initialization of Analytics until you call
Analytics.ResumeInitialization
. For example, if you want to ask the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8664aac3d558 | unity_docs | rendering | What is `ParticleSystem.ShapeModule.arc` in Unity? Explain its purpose and usage. | ParticleSystem.ShapeModule.arc
public float
arc
;
Description
Angle of the circle arc to emit particles from.
Note that you should specify the value in degrees.
Additional resources:
ParticleSystem.ShapeModule.shapeType
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_dacbcb7e74e0 | unity_docs | scripting | Explain 'Social API' in Unity. | Note
: Social API is deprecated and will be removed in a future release.
Social API is Unity’s point of access to social features, such as:
User profiles
Friends lists Achievements Statistics / Leaderboards
It provides a unified interface to different social back-ends, such as GameCenter , and is meant to be used prima... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_6a87ce8c602c | unity_docs | physics | In Unity's 'Enable conservative rasterization in a shader', what is 'Example' and how does it work? | ```
Shader "Examples/CommandExample"
{
SubShader
{
// The rest of the code that defines the SubShader goes here.
Pass
{
// Enable conservative rasterization for this Pass.
Conservative True
// The rest of the code that defines the Pass goes here.
}
}
}
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_43ef4a642480 | unity_docs | scripting | What is `EditorGUILayout.Vector4Field` in Unity? Explain its purpose and usage. | EditorGUILayout.Vector4Field
Declaration
public static
Vector4
Vector4Field
(string
label
,
Vector4
value
,
params GUILayoutOption[]
options
);
Parameters
Parameter
Description
label
Label to display above the field.
value
The value to edit.
options
An optional list of layout options that specify e... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_75724c5566ad | unity_docs | rendering | What is `LightTransport.IProbeIntegrator.IntegrateIndirectRadiance` in Unity? Explain its purpose and usage. | IProbeIntegrator.IntegrateIndirectRadiance(IDeviceContext,int,int,int,BufferSlice<SphericalHarmonicsL2>)
Parameters
Parameter
Description
context
Device context for computation and memory operations.
positionOffset
Starting index in the probe position buffer.
positionCount
Number of probe positions to process... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_d0b93ca2131b | unity_docs | rendering | In Unity's 'Set the lighting model in a Surface Shader in the Built-In Render Pipeline', what is 'Render pipeline compatibility' and how does it work? | Feature name
Universal Render Pipeline (URP)
High Definition Render Pipeline (HDRP)
Custom SRP
Built-in Render Pipeline
Surface Shaders No For a streamlined way of creating Shader objects in URP, see
Shader Graph
.
No
For a streamlined way of creating Shader objects in HDRP, see
Shader Graph
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_84de9f486476 | unity_docs | scripting | What is `UIElements.DragVisualMode` in Unity? Explain its purpose and usage. | DragVisualMode
enumeration
Description
The status of a drag-and-drop operation.
Properties
Property
Description
None
The drag-and-drop is currently unhandled.
Copy
The drag-and-drop handlers want to copy data.
Move
The drag-and-drop handlers want to move data.
Rejected
The drag-and-drop oper... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f5f056d227c0 | unity_docs | xr | In Unity's 'Behavior', what is 'Description' and how does it work? | Unity Behavior is a graph-based tool to create and run behavior trees with a modular architecture.
Human-readable graphs flow top-to-bottom with plain-language nodes
Comprehensive library of pre-built nodes for movement, detection, and decision-making
Seamless C# integration with a familiar lifecycle model
Hierarchical... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_35767697b207 | unity_docs | rendering | What are the parameters of `TerrainTools.TerrainPaintUtility.BeginPaintHoles` in Unity? | Returns PaintContext PaintContext that contains the combined Terrain holes data for the specified region. Description Helper function to set up a PaintContext for modifying the Terrain holes of one or more Terrain tiles. BeginPaintHoles identifies all of the Terrain holes pixels that are within extraBorderPixels of the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_0fccfbf72bec | unity_docs | xr | In Unity's 'Configure your network for Package Manager', what is 'Configuring your firewall' and how does it work? | To ensure that the Unity Package Manager can access the domains it uses, you must add the domains to your firewall’s safe list.
For a complete list of these domains, and all domains that the Unity Editor requires, refer to
Endpoints that Unity applications access
. You can either use the list to add entire domains, or ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7343998fbd1f | unity_docs | rendering | What is `PlatformIcon.height` in Unity? Explain its purpose and usage. | PlatformIcon.height
public int
height
;
Description
The height of the icon in pixels.
The actual texture can be of any size and will be automatically upscaled or downscaled when building the Unity project. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5429f9dc8771 | unity_docs | physics | Show me a Unity C# example demonstrating `EditorGUI.Popup`. | edIndex
The index of the option the field shows.
displayedOptions
An array with the options shown in the popup.
style
Optional
GUIStyle
.
Returns
int
The index of the option that has been selected by the user.
Description
Makes a generic popup selection field.
Takes the currently selected index as a para... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e00658144a5e | unity_docs | physics | What is `MeshCollider` in Unity? Explain its purpose and usage. | MeshCollider
class in
UnityEngine
/
Inherits from:
Collider
/
Implemented in:
UnityEngine.PhysicsModule
Description
A mesh collider allows you to do
collision detection
between meshes and primitives.
Additional resources:
BoxCollider
,
CapsuleCollider
,
PhysicsMaterial
,
Rigidbody
.
Properties
Proper... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a1422aef197c | unity_docs | physics | What is `PhysicsScene2D.OverlapCircle` in Unity? Explain its purpose and usage. | PhysicsScene2D.OverlapCircle
Declaration
public
Collider2D
OverlapCircle
(
Vector2
point
,
float
radius
,
int
layerMask
= Physics2D.DefaultRaycastLayers);
Declaration
public
Collider2D
OverlapCircle
(
Vector2
point
,
float
radius
,
ContactFilter2D
contactFilter
);
Parameters
Parameter
Descrip... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_70bdb402b557 | unity_docs | scripting | What is `TerrainTools.PaintDetailsToolUtility.CopyDetailPrototype` in Unity? Explain its purpose and usage. | PaintDetailsToolUtility.CopyDetailPrototype
Declaration
public static int
CopyDetailPrototype
(
Terrain
terrain
,
Terrain
sourceTerrain
,
int
sourceDetail
);
Parameters
Parameter
Description
terrain
The target terrain.
sourceTerrain
The source terrain.
sourceDetail
The index of the source detail.
R... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_fc4a58965cf8_doc_10 | github | scripting | What does `Insert` do in this Unity script? Explain its purpose and signature. | Insert new entry into the ordered dictionary.Zero-based index at which to insert the new entry.Unique key for the new entry.Value for the new entry.If is out of the range of the ordered dictionary.If is null.If dictionary already contains an entry with the specified key.
Signature:
```csharp
public void Insert(int i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fa7453a3522e | unity_docs | ui | What is `GUIStyle.border` in Unity? Explain its purpose and usage. | GUIStyle.border
public
RectOffset
border
;
Description
The borders of all background images.
This corresponds to the border settings for IMGUI elements. It only affects the rendering of the background image and has no effect on positioning.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dc38e60794bb | unity_docs | scripting | What is `Search.SearchExpressionContext.valid` in Unity? Explain its purpose and usage. | SearchExpressionContext.valid
public bool
valid
;
Description
Is the current context valid or not. If invalid it means the associated
SearchExpression
is null or the SearchExiressionRuntime is invalid. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_4537818d0785_doc_1 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | The current scale to the children, relative to their initial scale.
Signature:
```csharp
private float _scaleFactor = 1.0f;
``` | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_23723a70fc81 | unity_docs | performance | What is `ParticleSystemJobs.ParticleSystemJobData.customData1` in Unity? Explain its purpose and usage. | ParticleSystemJobData.customData1
public
ParticleSystemJobs.ParticleSystemNativeArray4
customData1
;
Description
This array contains the custom data values when you use a CustomDataModule, or when you call SetCustomParticleData. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ea1dfcaf2338 | unity_docs | ui | What is `Experimental.GraphView.SelectionDropper` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
SelectionDropper
class in
UnityEditor.Experimental.GraphView
/
Inherits from:
UIElements.Manipulator
Description
Selection drag&drop manipulator.
Properties
Property
Description
activateButton
Mouse button used to activat... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0dd208e26ab8 | unity_docs | animation | What is `SerializedProperty.animationCurveValue` in Unity? Explain its purpose and usage. | SerializedProperty.animationCurveValue
public
AnimationCurve
animationCurveValue
;
Description
Value of a animation curve property.
Additional resources:
propertyType
,
SerializedPropertyType.AnimationCurve
,
AnimationCurve
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_892e6bd649e7 | unity_docs | scripting | What is `SpritePackingMode` in Unity? Explain its purpose and usage. | SpritePackingMode
enumeration
Description
Sprite packing modes for the Sprite Packer.
Properties
Property
Description
Tight
Tight mesh based packing.
Rectangle
Alpha-cropped rectangle packing. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b8332135831f | unity_docs | scripting | What is `ExposedReference_1.Resolve` in Unity? Explain its purpose and usage. | ExposedReference<T0>.Resolve(ExposedPropertyResolver)
Parameters
Parameter
Description
resolver
The ExposedPropertyResolver context object.
Returns
void
The resolved reference value.
Description
Gets the value of the reference by resolving it given the ExposedPropertyResolver context object.
Additional r... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f9ccdece5d20 | unity_docs | rendering | What is `UIElements.MeshGenerationContext.Allocate` in Unity? Explain its purpose and usage. | MeshGenerationContext.Allocate
Declaration
public
UIElements.MeshWriteData
Allocate
(int
vertexCount
,
int
indexCount
,
Texture
texture
);
Parameters
Parameter
Description
vertexCount
The number of vertices to allocate. The maximum is 65535 (or UInt16.MaxValue).
indexCount
The number of triangle list... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_20642c7dfb00 | unity_docs | physics | Show me a Unity C# example demonstrating `Rigidbody.rotation`. | is is faster than updating the rotation using Transform.rotation, as Transform.rotation causes all attached Colliders to recalculate their rotation relative to the Rigidbody, whereas Rigidbody.rotation sets the values directly to the physics system.
If you want to continuously rotate a rigidbody use
MoveRotation
inst... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ea92a2856141 | unity_docs | scripting | In Unity's 'Callback from native code', what is 'Use delegates' and how does it work? | When you use delegates, the method on the C# side must be static and marked with the MonoPInvokeCallback attribute.
To use delegates:
Pass the method as a delegate to the extern method.
Implement the extern method in native code as a function that accepts a pointer to functions with the corresponding signature.
The fun... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fbad52070f7d | unity_docs | scripting | What is `Experimental.GraphView.Group.OnElementsAdded` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
Group.OnElementsAdded
Declaration
protected void
OnElementsAdded
(IEnumerable<GraphElement>
elements
);
Parameters
Parameter
Description
elements
The added elements.
Description
Called when elements are added to this gr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_84d32a75db78 | unity_docs | rendering | What is `Unity.Profiling.ProfilerRecorder.Count` in Unity? Explain its purpose and usage. | ProfilerRecorder.Count
public int
Count
;
Description
Collected samples count.
Use to determine how many samples had been collected by the ProfilerRecorder.
Count is always >= 0 and <
Capacity
.
Note:
If recorder is created with
ProfilerRecorderOptions.WrapAroundWhenCapacityReached
the Count property determ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0f92a5138896 | unity_docs | math | What is `CullingGroup.SetDistanceReferencePoint` in Unity? Explain its purpose and usage. | CullingGroup.SetDistanceReferencePoint
Declaration
public void
SetDistanceReferencePoint
(
Vector3
point
);
Declaration
public void
SetDistanceReferencePoint
(
Transform
transform
);
Parameters
Parameter
Description
point
A fixed point to measure the distance from.
transform
A transform to measure t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b1877f3cebf0 | unity_docs | scripting | What is `Playables.ScriptPlayableBinding` in Unity? Explain its purpose and usage. | ScriptPlayableBinding
class in
UnityEngine.Playables
/
Implemented in:
UnityEngine.CoreModule
Description
A
PlayableBinding
that contains information representing a ScriptingPlayableOutput.
Static Methods
Method
Description
Create
Creates a PlayableBinding that contains information representing a ScriptPla... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9e2164301a53 | unity_docs | physics | What is `Build.OverrideTextureCompression.ForceNoCrunchCompression` in Unity? Explain its purpose and usage. | OverrideTextureCompression.ForceNoCrunchCompression
Description
Import textures with crunch compression disabled.
You can set
EditorUserBuildSettings.overrideTextureCompression
to
ForceNoCrunchCompression
to import
all textures with Crunch compression disabled. This is the same as if all the textures had their ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c82d606ced0f | unity_docs | rendering | What is `Experimental.GlobalIllumination.DirectionalLight.orientation` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
DirectionalLight.orientation
public
Quaternion
orientation
;
Description
The light's orientation. Only relevant for cookie placement. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6b44ddb2bc39 | unity_docs | scripting | What is `Unity.Android.Gradle.ModuleBuildGradleFile` in Unity? Explain its purpose and usage. | ModuleBuildGradleFile
class in
Unity.Android.Gradle
/
Inherits from:
Unity.Android.Gradle.BaseGradleFile
Description
The C# definition of module-level gradle file.
For more information about the file, see Android's documentation:
The module-level build file
Properties
Property
Description
Android
The C# de... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_56df236b2918 | unity_docs | scripting | What is `Object.FindObjectsOfType` in Unity? Explain its purpose and usage. | Method group is Obsolete
Object.FindObjectsOfType
Obsolete
Object.FindObjectsOfType has been deprecated. Use Object.FindObjectsByType instead which lets you decide whether you need the results sorted or not. FindObjectsOfType sorts the results by InstanceID, but if you do not need this using FindObjectSortMode.No... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_7375de3ea7fc_doc_1 | github | scripting | What does `AddPackage` do in this Unity script? Explain its purpose and signature. | Adds a package dependency to the Project. This is the equivalent of installing a package.--- To install the latest compatible version of a package, specify only the package.--- To install a git package, specify a git url --- To install a local package, specify a value in the format "file:pathtopackagefolder".--- To ins... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_4e7101f032a2 | unity_docs | editor | What is `Embree.GpuBvhPrimitiveDescriptor` in Unity? Explain its purpose and usage. | GpuBvhPrimitiveDescriptor
struct in
UnityEditor.Embree
Description
Characteristics of a primitive used in the BVH build.
Properties
Property
Description
lowerBound
Lower bound of the primitive's bounding box.
primID
Specify the primitive ID. The ID is written in leaf nodes.
upperBound
Upper bound of the prim... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e73afc86c863 | unity_docs | scripting | What is `AudioConfiguration` in Unity? Explain its purpose and usage. | AudioConfiguration
struct in
UnityEngine
/
Implemented in:
UnityEngine.AudioModule
Description
Specifies the current properties or desired properties to be set for the audio system.
Use these properties to change how Unity outputs all audio in your project, including how many sounds can play at one time and wha... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2e2b9ae41899 | unity_docs | scripting | Show me a Unity C# example demonstrating `Application.memoryUsageChanged`. | application when memory usage becomes critical.
iOS, Android, and Universal Windows Platform (UWP) support this event, but not every platform supports all possible
ApplicationMemoryUsage
values.
Android supports
Medium
,
High
, and
Critical
.
Note:
When targeting
GameActivity
, only
Critical
is supported.
i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bc191fa5d3af | unity_docs | scripting | What is `Time.fixedTime` in Unity? Explain its purpose and usage. | Time.fixedTime
public static float
fixedTime
;
Description
The time at which the current
FixedUpdate
started in seconds since the start of the game (Read Only).
This value is updated in fixed increments equal to
Time.fixedDeltaTime
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1c42e16bf9c4 | unity_docs | scripting | Show me a Unity C# example demonstrating `Windows.WebCam.PhotoCapture.TakePhotoAsync`. | photo directly to disk as either a png or jpg.
EXIF
metadata will be encoded into the captured image when saving the image in the JPEG format. You may save
the captured image in the JPEG format when using the BGRA32 and NV12 pixel formats. You may only save the captured image as a PNG when using the BGRA32 pixel forma... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.