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_9d02a1c93b12 | unity_docs | scripting | What is `Application.logMessageReceived` in Unity? Explain its purpose and usage. | Application.logMessageReceived
Description
Event that is fired if a log message is received.
This event only ever triggers on the main thread. Use it if your handler requires accessing parts of the Unity API that are restricted to the main thread or if for other reasons your handler isn't thread-safe.
```csharp
us... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_08635584a74a | unity_docs | scripting | What is `TransferFunction` in Unity? Explain its purpose and usage. | TransferFunction
enumeration
Description
Contains electro-optical transfer function options.
Properties
Property
Description
sRGB
sRGB transfer function.
BT1886
ITU-R BT.1886 transfer function.
PQ
SMPTE ST 2084 transfer function.
Linear
Linear transfer function.
Gamma22
Gamma 2.2 transfer function. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_775f0c9b03db | unity_docs | rendering | Explain 'Configure graphics APIs' in Unity. | Unity uses a built-in set of graphics APIs or the graphics APIs that you select in the Unity Editor.
To use Unity’s default graphics APIs:
Open the
Player settings
(menu:
Edit
>
Project Settings
>
Player
).
Navigate to
Other Settings
>
Rendering
section and enable
Auto Graphics API for a platform (Windows/Mac/Linux)
:
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b464b440efde | unity_docs | scripting | What is `ChangeRootOrderEventArgs.ctor` in Unity? Explain its purpose and usage. | ChangeRootOrderEventArgs Constructor
Declaration
public
ChangeRootOrderEventArgs
(int
instanceId
,
SceneManagement.Scene
scene
);
Parameters
Parameter
Description
instanceId
The instance ID of the
GameObject
being reordered. Note that this is not the instance ID of the
Transform
component.
scene
The... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1eed32acec96 | unity_docs | audio | What is `AudioSource.SetScheduledStartTime` in Unity? Explain its purpose and usage. | AudioSource.SetScheduledStartTime
Declaration
public void
SetScheduledStartTime
(double
time
);
Parameters
Parameter
Description
time
Time in seconds.
Description
Changes the time at which a sound that has already been scheduled to play will start.
Notice that depending on the timing not all rescheduling... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_164400064117 | unity_docs | scripting | What is `ParticleSystem.LimitVelocityOverLifetimeModule.dragMultiplier` in Unity? Explain its purpose and usage. | ParticleSystem.LimitVelocityOverLifetimeModule.dragMultiplier
public float
dragMultiplier
;
Description
Specifies the drag multiplier.
Changing this property is more efficient than accessing the entire curve, if you only want to change the overall drag multiplier.
```csharp
using UnityEngine;
using System.Col... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_da953c3ffcc4 | unity_docs | scripting | What is `Experimental.GraphView.MiniMap.OnResized` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
MiniMap.OnResized
Declaration
public void
OnResized
();
Description
Call this method after a user has resized a MiniMap to let the MiniMap know it needs to get updated. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9b312b655ea9 | unity_docs | rendering | What is `Rendering.RealtimeGICPUUsage.Unlimited` in Unity? Explain its purpose and usage. | RealtimeGICPUUsage.Unlimited
Description
100% of the allowed CPU threads are used as worker threads.
All of the total number of allowed logical CPU cores are populated with Enlighten Realtime Global Illumination worker threads.
Additional resources:
TierSettings.realtimeGICPUUsage
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_dd6df5bb20c3 | github | scripting | Write a Unity C# XR/VR script for XRUI Binder | ```csharp
using UnityEngine;
using UnityEngine.EventSystems;
namespace TapLive.XR
{
/// <summary>
/// Binds world-space UI to XR controllers and handles raycasting
/// </summary>
public class XRUIBinder : MonoBehaviour
{
[Header("UI Settings")]
public Canvas worldSpaceCanvas;
... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_ab940184a198 | unity_docs | scripting | What is `UIElements.StartDragArgs.title` in Unity? Explain its purpose and usage. | StartDragArgs.title
public string
title
;
Description
The title displayed near the pointer to identify what is being dragged.
Should be set during the
BaseVerticalCollectionView.setupDragAndDrop
callback. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f37d27fd0901 | unity_docs | scripting | Give me an overview of the `LegDof` class in Unity. | LegDof
enumeration
Description
Enumeration of all the muscles in a leg.
These muscles are a sub-part of a human part.
Additional resources:
HumanPartDof
.
Properties
Property
Description
UpperLegFrontBack
The upper leg front-back muscle.
UpperLegInOut
The upper leg in-out muscle.
UpperLegRollInOut
The upper... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_2d34c9405eb4 | github | scripting | Write a Unity C# UI script for Simple Camera Controller | ```csharp
#if ENABLE_INPUT_SYSTEM && ENABLE_INPUT_SYSTEM_PACKAGE
#define USE_INPUT_SYSTEM
using UnityEngine.InputSystem;
using UnityEngine.InputSystem.Controls;
#endif
using UnityEngine;
namespace UnityTemplateProjects
{
public class SimpleCameraController : MonoBehaviour
{
class CameraState
... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_95a9d2a0d53e | unity_docs | animation | What is `Animations.LookAtConstraint.GetSource` in Unity? Explain its purpose and usage. | LookAtConstraint.GetSource
Declaration
public
Animations.ConstraintSource
GetSource
(int
index
);
Parameters
Parameter
Description
index
The index of the source.
Returns
ConstraintSource
Returns the source object and its weight.
Description
Gets a constraint source by index.
Throws ArgumentOutOfRa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e735b6190602 | unity_docs | editor | What is `AssetImporters.CollectImportedDependenciesAttribute` in Unity? Explain its purpose and usage. | CollectImportedDependenciesAttribute
class in
UnityEditor.AssetImporters
Description
Use this method attribute to specify which methods declare dependancies on imported assets. The methods are called by
AssetDatabase
during import.
The AssetDatabase imports the dependencies declared in methods with this attribu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ac142863292f | unity_docs | ui | What are the parameters of `GUILayout.VerticalScrollbar` in Unity? | Returns float The modified value. This can be changed by the user by dragging the scrollbar, or clicking the arrows at the end. Description Make a vertical scrollbar. A scrollbar control returns a float value that represents the position of the draggable "thumb" withtin the bar. You can use the value to adjust another ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2ef51fda95e1 | unity_docs | math | What is `Tilemaps.Tilemap.GetTilesRangeNonAlloc` in Unity? Explain its purpose and usage. | Tilemap.GetTilesRangeNonAlloc
Declaration
public int
GetTilesRangeNonAlloc
(
Vector3Int
startPosition
,
Vector3Int
endPosition
,
Vector3Int[]
positions
,
TileBase[]
tiles
);
Parameters
Parameter
Description
startPosition
The starting position of the range to retrieve Tiles from.
endPosition
The endin... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f73df4f2e140 | unity_docs | physics | What is `AnimatorControllerParameterType` in Unity? Explain its purpose and usage. | 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_9611494f65ac | unity_docs | rendering | What is `Video.Video3DLayout` in Unity? Explain its purpose and usage. | Video3DLayout
enumeration
Description
Types of 3D content layout within a video.
Use this enum to change how the VideoPlayer displays 3D stereoscopic videos. 3D videos include slightly different views for the left and right eyes, which the video combines to create the illusion of depth.
These formats give you more... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_96da2b1fe10b | unity_docs | rendering | In Unity's 'Introduction to USS built-in variables', what is 'Role and Control' and how does it work? | Roles and controls are two ways of grouping elements conceptually.
Role
refers to a group of elements that have the same purpose, regardless of what type each element is. For example, the error role includes all elements that display error messages to users.
Control
refers to a group of elements of the same type, regar... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_845bb8a37736 | unity_docs | rendering | Explain 'Video Player component reference' in Unity. | Configure the Video Player component’s settings to specify the video file to play and customize its playback behavior within your
scene
.
For information about the Video Player component and how to create one, refer to
Video Player component targets and Create a Video Player component
.
Property Description Source
Choo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_fe127da2b613 | unity_docs | editor | Explain 'Instantiate UXML from C# scripts' in Unity. | To build UI from a UXML file:
Load the file into a VisualTreeAsset ,.
Use either:
Instantiate()
to instantiate without a parent, which creates a new
TemplateContainer
.
CloneTree(parent)
to clone inside a parent.
Once the UXML is instantiated, you can retrieve specific elements from the
visual tree with UQuery
.
The fo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_42d29ab36a26 | unity_docs | rendering | Show me a Unity C# example demonstrating `Gyroscope`. | ine.InputLegacyModule
Description
Interface into the Gyroscope.
Use this class to access the gyroscope. The example script below shows how the Gyroscope class can be used to view the orientation in space of the device.
Underlying sensors used for data population:
Android
: Gravity, Linear Acceleration, Rotation Vec... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3ada28395c29 | unity_docs | scripting | What is `ParticleSystem.NoiseModule.enabled` in Unity? Explain its purpose and usage. | ParticleSystem.NoiseModule.enabled
public bool
enabled
;
Description
Specifies whether the the NoiseModule is enabled or disabled.
Additional resources:
ParticleSystem.noise
.
```csharp
using UnityEngine;
using System.Collections;[RequireComponent(typeof(ParticleSystem))]
public class ExampleClass : MonoBeha... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2fc009385163 | unity_docs | rendering | In Unity's 'SubShader tags in ShaderLab reference', what is 'RenderPipeline tag' and how does it work? | Signature
Function
“RenderPipeline” = “[name]”
Tells Unity whether this SubShader is compatible with URP or HDRP.
Parameter Value Function
[name]
UniversalPipeline
This SubShader is compatible with URP only.
HDRenderPipeline
This SubShader is compatible with HDRP only.
(any other value, or not declared)
This SubShader ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0dec3c1b377c | unity_docs | scripting | What is `AssetDatabase` in Unity? Explain its purpose and usage. | AssetDatabase
class in
UnityEditor
Description
An Interface for accessing assets and performing operations on assets.
Static Properties
Property
Description
ActiveRefreshImportMode
Gets the refresh import mode currently in use by the asset database.
DesiredWorkerCount
The desired number of processes to use wh... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_3baa890d5404 | unity_docs | xr | In Unity's 'System requirements for Unity 6.0', what is 'Unity Editor system requirements' and how does it work? | This section lists the hardware and software requirements to run the Unity Editor. Actual performance and rendering quality might vary depending on the complexity of your project.
For all operating systems, the Unity Editor is supported on workstations or laptop form factors running without emulation, container or comp... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4fcefb6b6f0b | unity_docs | rendering | Explain 'Tracing and warming up PSOs' in Unity. | Trace and warm up graphics states with the experimental GraphicsStateCollection API to reduce shader compilation stutters.
Important
:
GraphicsStateCollection
is an experimental API and might be changed or removed in the future.
The following sections outline how to trace and warm up PSOs in your project:
Topic Descrip... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ee999f3ab2e9 | unity_docs | ui | Explain 'TemplateContainer' in Unity. | The TemplateContainer is the root element of a UXML file and acts as the parent of all other elements in the file.
A TemplateContainer instance is automatically generated for the following scenarios:
When you use
VisualTreeAsset.Instantiate()
in C#, a TemplateContainer instance is generated to represent the root of the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_58c212bec8de | unity_docs | scripting | What is `Rigidbody.linearDamping` in Unity? Explain its purpose and usage. | Rigidbody.linearDamping
public float
linearDamping
;
Description
The linear damping of the Rigidbody linear velocity.
linearDamping can be used to slow down an object.
Zero indicates that no damping should be used whereas higher values increase the damping, effectively slowing down the linear motion faster.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_586ea8facd58 | unity_docs | scripting | What is `Rendering.RTClearFlags` in Unity? Explain its purpose and usage. | RTClearFlags
enumeration
Description
Flags that determine which render targets Unity clears when you use
CommandBuffer.ClearRenderTarget
.
You can combine flags by using the bitwise OR operator.
```csharp
using UnityEngine;
using UnityEngine.Rendering;// Attach this script to a Camera and select a Clear Mode.
//... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1963b1558a86 | unity_docs | performance | What is `Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle.SetCustomErrorMessage` in Unity? Explain its purpose and usage. | AtomicSafetyHandle.SetCustomErrorMessage
Declaration
public static void
SetCustomErrorMessage
(int
staticSafetyId
,
Unity.Collections.LowLevel.Unsafe.AtomicSafetyErrorType
errorType
,
byte*
messageBytes
,
int
byteCount
);
Parameters
Parameter
Description
staticSafetyId
The static safety ID with which th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5499bce125db | unity_docs | scripting | Show me a Unity C# example demonstrating `Search.SearchService.GetProvider`. | SearchService.GetProvider
Declaration
public static
Search.SearchProvider
GetProvider
(string
providerId
);
Parameters
Parameter
Description
providerId
Unique ID of the search provider.
Returns
SearchProvider
The matching search provider.
Description
Returns the data of a search provider given its ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_102bb46525dc | unity_docs | math | What is `Mesh.SetSubMeshes` in Unity? Explain its purpose and usage. | Mesh.SetSubMeshes
Declaration
public void
SetSubMeshes
(SubMeshDescriptor[]
desc
,
int
start
,
int
count
,
Rendering.MeshUpdateFlags
flags
);
Declaration
public void
SetSubMeshes
(SubMeshDescriptor[]
desc
,
Rendering.MeshUpdateFlags
flags
);
Declaration
public void
SetSubMeshes
(List<SubMeshDescri... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a898154b0fc9 | unity_docs | rendering | What is `Windows.WebCam.PhotoCapture.GetUnsafePointerToVideoDeviceController` in Unity? Explain its purpose and usage. | PhotoCapture.GetUnsafePointerToVideoDeviceController
Declaration
public IntPtr
GetUnsafePointerToVideoDeviceController
();
Returns
IntPtr
A native COM pointer to the IVideoDeviceController.
Description
Provides a COM pointer to the native IVideoDeviceController.
This method provides direct access to the n... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_501952baef84 | unity_docs | editor | What is `TerrainTools.DetailBrushRepresentation` in Unity? Explain its purpose and usage. | DetailBrushRepresentation
class in
UnityEditor.TerrainTools
Description
Represents data associated with the brush used for scattering details.
DetailBrushRepresentation acts as a container for functional data used when determining the area of scatter when painting on a terrain.
You use DetailBrushRepresentat... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_73120b1aa076 | unity_docs | rendering | Give me an overview of the `DynamicGI` class in Unity. | DynamicGI
class in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Allows to control the dynamic Global Illumination.
Additional resources:
RendererExtensions.UpdateGIMaterials
,
TerrainExtensions.UpdateGIMaterials
.
Static Properties
Property
Description
indirectScale
Allows for scaling ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dbf604aadb71 | unity_docs | math | What is `HandleUtility.DistanceToRectangle` in Unity? Explain its purpose and usage. | HandleUtility.DistanceToRectangle
Declaration
public static float
DistanceToRectangle
(
Vector3
position
,
Quaternion
rotation
,
float
size
);
Description
Returns the distance in pixels from the mouse pointer to a rectangle on screen.
Calculates the screen space distance from the mouse pointer to the rect... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_d50a00307118 | unity_docs | physics | In Unity's 'Collision module reference', what is 'Planes module 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 Planes popup Select Planes
mode.
Planes
An expandable list of Transforms that define collision planes.
Visualization
Selec... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2f71aa85e488 | unity_docs | rendering | What is `Search.ISearchView.context` in Unity? Explain its purpose and usage. | ISearchView.context
public
Search.SearchContext
context
;
Description
Returns the current view search context.
```csharp
using UnityEngine;
using UnityEditor;
using UnityEditor.Search;
static class Example_ISearchView_context
{
[MenuItem("Examples/ISearchView/context")]
public static void Run()
{
var vie... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_98f2ce741f6f | unity_docs | scripting | What is `AI.NavMeshAgent.updateUpAxis` in Unity? Explain its purpose and usage. | NavMeshAgent.updateUpAxis
public bool
updateUpAxis
;
Description
Allows you to specify whether the agent should be aligned to the up-axis of the NavMesh or link that it is placed on.
When this value is set to true, the agent will always be aligned to the local up-axis of the NavMesh or link that it is currently... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8531486267a7 | unity_docs | scripting | What is `TransformUtils.SetConstrainProportions` in Unity? Explain its purpose and usage. | TransformUtils.SetConstrainProportions
Declaration
public static void
SetConstrainProportions
(
Transform
transform
,
bool
enabled
);
Declaration
public static void
SetConstrainProportions
(Transform[]
transforms
,
bool
enabled
);
Parameters
Parameter
Description
transform
Transform to set Constrain ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c44e5b399050 | unity_docs | physics | In Unity's 'Debug shaders with Visual Studio', what is 'Using Visual Studio to debug shaders' and how does it work? | For instructions on setting up Visual Studio, see the Microsoft documentation:
Install Visual Studio
.
For instructions on setting up and using Visual Studio’s graphics debugging tools, see the Microsoft documentation:
Visual Studio Graphics Diagnostics
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_21c4d9505f78 | unity_docs | rendering | In Unity's 'Xcode frame debugger Unity integration', what is 'Capture a frame from your application with the command line' and how does it work? | This section describes how to launch your application from the command line, perform a frame capture using the FrameCapture API, and save the results to disk.
Important:
This workflow isn’t supported on iOS. To perform frame captures on iOS, you must always launch your application from Xcode.
Add calls to
FrameCapture.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_645619ffe2b6 | unity_docs | rendering | What is `TerrainTools.PaintContext.Scatter` in Unity? Explain its purpose and usage. | PaintContext.Scatter
Declaration
public void
Scatter
(Func<ITerrainInfo,RenderTexture>
terrainDest
,
Material
blitMaterial
,
int
blitPass
,
Action<ITerrainInfo>
beforeBlit
,
Action<ITerrainInfo>
afterBlit
);
Parameters
Parameter
Description
terrainDest
Function returning the RenderTexture to be written... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_259f340825dd | unity_docs | xr | In Unity's 'Set up your Apache server configuration for Web builds', what is 'Use the virtual host inhttpd.confmethod' and how does it work? | To configure Web builds using the virtual host in
httpd.conf
method, use the following code in your Apache server configuration:
```
<Directory /var/www/html/root/path/to/your/unity/content/>
<IfModule mod_mime.c>
RemoveType .gz
AddEncoding gzip .gz
# The correct MIME type for .data.gz would be application/octet-stream... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_66bba70f4b73 | unity_docs | rendering | What is `Shader.keywordSpace` in Unity? Explain its purpose and usage. | Shader.keywordSpace
public
Rendering.LocalKeywordSpace
keywordSpace
;
Description
The local keyword space of this shader.
Shader keywords determine which shader variants Unity uses. For information on working with
local shader keywords
and
global shader keywords
and how they interact, see
Using shader k... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2404f733985e | unity_docs | animation | What is `Animations.AnimationStream.inputStreamCount` in Unity? Explain its purpose and usage. | AnimationStream.inputStreamCount
public int
inputStreamCount
;
Description
Gets the number of input streams. (Read Only)
The number of input streams are equal to the number of inputs in the Playable.
Additional resources:
GetInputStream
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_c373de714fb8_doc_5 | github | scripting | What does `MemoryLimitInMb` do in this Unity script? Explain its purpose and signature. | Disk/Memory cache limit in MB
Signature:
```csharp
public int MemoryLimitInMb => memoryLimitInMb;
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_331f39365383 | unity_docs | scripting | Show me a Unity C# example demonstrating `Gizmos.CalculateLOD`. | specified position with a specified radius.
A return value of 0 indicates the gizmo is not visible. The gizmo might not be visible because it is too small on the screen or because it is outside of the Scene view camera frustum. The return value is quantized to eighths to reduce the number of produced batches.
This ca... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_100dcb690c35 | unity_docs | scripting | Show me a Unity code example for 'Creating, loading, and saving scenes'. | hat need to be cloned
, you must provide a path for Unity to save the scene to disk.
## New scene events
When you create a new scene from a template, either from a script or using the New Scene dialog, Unity triggers an
event
. Unity triggers this event after the template is instantiated, and also after it triggers t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_72f31d1cdf1a | unity_docs | scripting | What is `Handles.color` in Unity? Explain its purpose and usage. | Handles.color
public static
Color
color
;
Description
Sets the color of handles. Color is a persistent state and affects any handles drawn after it is set. Use
DrawingScope
to set the color for a block of handles without affecting the color of other handles.
White cone that points to 0,0,0.
```csharp
// Na... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f1d5dba678f2 | unity_docs | scripting | What is `AsyncInstantiateOperation.SetIntegrationTimeMS` in Unity? Explain its purpose and usage. | AsyncInstantiateOperation.SetIntegrationTimeMS
Declaration
public static void
SetIntegrationTimeMS
(float
integrationTimeMS
);
Description
Sets the target duration allowed per frame to integrate instantiated object operations, in milliseconds. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7feb4e8cc65f | unity_docs | editor | What is `Playables.PlayableOutputEditorExtensions.GetEditorName` in Unity? Explain its purpose and usage. | PlayableOutputEditorExtensions.GetEditorName
Declaration
public static string
GetEditorName
(U
output
);
Parameters
Parameter
Description
output
The
PlayableOutput
used by this operation.
Description
Returns the name of the
PlayableOutput
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_69a8bed25a17 | unity_docs | physics | In Unity's 'Introduction to rigid body physics', what is 'Rigidbody optimization' and how does it work? | When a Rigidbody moves at a slower speed than the
Sleep Threshold
(see the Physics Project Settings), Unity sets the Rigidbody to “sleep”, which means that the physics system does not include it in physics calculations. When a sleeping Rigidbody receives a collision or force, Unity “wakes up” the Rigidbody and continue... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4d6930ff4d6c | unity_docs | physics | What is `Rigidbody.includeLayers` in Unity? Explain its purpose and usage. | Rigidbody.includeLayers
public
LayerMask
includeLayers
;
Description
The additional layers that all
Collider
s attached to this
Rigidbody
should include when deciding if the
Collider
can come into contact with another
Collider
.
The Layer Collision Matrix defines which layers can contact other layers. ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_82157354b0ec | unity_docs | math | What is `BoundsInt` in Unity? Explain its purpose and usage. | BoundsInt
struct in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Represents an axis aligned bounding box with all values as integers.
An axis-aligned bounding box, or AABB for short, is a box aligned with coordinate axes and fully enclosing
some object. As the box is never rotated with respe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_921f72a7ec35 | unity_docs | rendering | In Unity's 'On-demand resources', what is 'Tag an AssetBundle' and how does it work? | When creating an AssetBundle, you must assign a tag to identify it when requesting the AssetBundle download. It’s recommended to create a label that matches the bundle’s file name.
To create and assign a tag, use the following steps:
Select the folder where you are grouping your assets.
In the Inspector window, in the
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_809af6fcf507 | unity_docs | scripting | What is `ParticleSystem.ExternalForcesModule.enabled` in Unity? Explain its purpose and usage. | ParticleSystem.ExternalForcesModule.enabled
public bool
enabled
;
Description
Specifies whether the ExternalForcesModule is enabled or disabled.
Additional resources:
ParticleSystem.externalForces
.
```csharp
using UnityEngine;
using System.Collections;[RequireComponent(typeof(ParticleSystem))]
public class ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8190ad22a1c5 | unity_docs | math | What is `HandleUtility.WorldToGUIPointWithDepth` in Unity? Explain its purpose and usage. | HandleUtility.WorldToGUIPointWithDepth
Declaration
public static
Vector3
WorldToGUIPointWithDepth
(
Vector3
world
);
Parameters
Parameter
Description
world
Point in world space.
Returns
Vector3
A Vector3 where the x and y values relate to the 2D GUI position. The z value is the distance in world units... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_78da74bbef5c | unity_docs | rendering | What is `TextureImporterSettings.wrapModeW` in Unity? Explain its purpose and usage. | TextureImporterSettings.wrapModeW
public
TextureWrapMode
wrapModeW
;
Description
Texture W coordinate wrapping mode for
Texture3D
.
Controls wrapping mode along texture W (depth, only relevant for
Texture3D
) axis.
Additional resources:
Texture.wrapModeW
,
wrapMode
,
texture assets
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c5ee30f67512 | unity_docs | rendering | What is `ScreenCapture.StereoScreenCaptureMode` in Unity? Explain its purpose and usage. | StereoScreenCaptureMode
enumeration
Description
Enumeration specifying the eye texture to capture when using ScreenCapture.CaptureScreenshot and when stereo rendering is enabled.
The CaptureScreenshot method will default to StereoScreenCaptureMode.LeftEye. When captured in stereo mode, the resolution of the screen... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_0bdb4e04c693 | github | scripting | Write a Unity C# animation script for Pip Game Over | ```csharp
using System.Collections;
using UnityEngine;
public class PipGameOver : MonoBehaviour
{
[SerializeField] private float StartHeight;
[SerializeField] private float FinalHeight;
[SerializeField] private float moveSpeed;
[SerializeField] private float startDelay;
[SerializeField] private An... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_6e10935514db | unity_docs | rendering | What is `ShaderVariantCollection.ShaderVariant.ctor` in Unity? Explain its purpose and usage. | ShaderVariantCollection.ShaderVariant Constructor
Declaration
public
ShaderVariantCollection.ShaderVariant
(
Shader
shader
,
Rendering.PassType
passType
,
params string[]
keywords
);
Description
Creates a ShaderVariant structure.
Note that this will throw an ArgumentException if shader is null, pass type ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e42ea64033e3 | unity_docs | scripting | What is `Search.SearchService.OrderedProviders` in Unity? Explain its purpose and usage. | SearchService.OrderedProviders
public static IEnumerable<SearchProvider>
OrderedProviders
;
Description
Returns the list of search providers sorted by priority.
```
// Print providers by their search priority when a query is executed.
foreach (var provider in SearchService.OrderedProviders)
Debug.Log($"[{provi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5bba563d62d9 | unity_docs | rendering | What is `Rendering.VirtualTexturing.Resolver.CurrentHeight` 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.
Resolver.CurrentHeight
public int
CurrentHeight
;
Description
>Height of the texture that the internal buffers can hold. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_24256ddc977f | unity_docs | xr | Explain 'Packages by keywords' in Unity. | Packages contain the following keywords:
Keyword:
Matching packages:
2d
2D Sprite
2D Tilemap Editor
2D
2D Pixel Perfect
3d ProBuilder abc Alembic adapt
Remote Config adaptive Adaptive Performance ads Advertisement Legacy ai Behavior aim Cinemachine alembic Alembic Android Android Logcat
Mobile Notifications animation 2... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_536d77367e75 | unity_docs | rendering | What is `GL.LoadOrtho` in Unity? Explain its purpose and usage. | GL.LoadOrtho
Declaration
public static void
LoadOrtho
();
Description
Helper function to set up an orthograhic projection.
Loads an orthographic projection into the projection matrix and loads an identity into the
model and view matrices.
The resulting projection performs the following mappings:
1.
x = 0..1 t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_3b3267339c2e | unity_docs | ui | In Unity's 'Generate 2D visual content', what is 'Line' and how does it work? | The LineTo method generates a straight line from the current pen position to the provided one. Before you draw lines, define properties, such as the stroke color, the line width, the joins, and caps.
When you draw lines, the properties of LineJoin and LineCap control the styles of line joins and caps.
The following ima... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2db9ad0f239d | unity_docs | physics | What is `SimulationStage.All` in Unity? Explain its purpose and usage. | SimulationStage.All
Description
Shorthand for combining all the
SimulationStage
s.
Additional resources:
SimulationStage.PrepareSimulation
,
SimulationStage.RunSimulation
,
SimulationStage.PublishSimulationResults
,
PhysicsScene.RunSimulationStages
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e41666f45c81 | unity_docs | scripting | What is `Experimental.Rendering.GraphicsFormat.RGBA_PVRTC_4Bpp_SRGB` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormat.RGBA_PVRTC_4Bpp_SRGB
Description
A four-component, PVRTC compressed format where each 64-bit compressed texel block encodes a 4×4 rectangle of unsigned normalized RGBA texel data with the first 32 bits encoding alp... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ae8406bfd1d5 | unity_docs | editor | What is `Search.SearchAction.handler` in Unity? Explain its purpose and usage. | SearchAction.handler
public Action<SearchItem>
handler
;
Description
This handler is used for actions that do not support multi-selection.
```
new SearchAction("asset", "print_dependencies", new GUIContent("Print Dependencies", null, "Print all dependencies of an asset."))
{
// If this action is the default, d... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_bd5969e828d3_doc_4 | github | scripting | What does `SetControlledCamera` do in this Unity script? Explain its purpose and signature. | By default, the WRLD SDK maintains an internal representation of a rendering camera, and uses thisto control a UnityEngine.Camera instance, moving it around in response to user input and CameraApi function calls.This function sets which UnityEngine.Camera instance will be controlled by the WRLD SDK.A UnityEngine.Camera... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_2ba39c30e55f | unity_docs | rendering | What is `TrailRenderer.BakeMesh` in Unity? Explain its purpose and usage. | TrailRenderer.BakeMesh
Declaration
public void
BakeMesh
(
Mesh
mesh
,
bool
useTransform
);
Declaration
public void
BakeMesh
(
Mesh
mesh
,
Camera
camera
,
bool
useTransform
);
Parameters
Parameter
Description
mesh
A static mesh that will receive the snapshot of the trail.
camera
The camera used... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5ee67a33f250 | unity_docs | rendering | In Unity's 'Lifetime by Emitter Speed 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 Multiplier
The multiplier to apply to the particle’s initial lifetime. The module uses this value differently depending on... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cfa29d6a2116 | unity_docs | rendering | What is `MaterialPropertyBlock.SetFloat` in Unity? Explain its purpose and usage. | MaterialPropertyBlock.SetFloat
Declaration
public void
SetFloat
(string
name
,
float
value
);
Declaration
public void
SetFloat
(int
nameID
,
float
value
);
Parameters
Parameter
Description
name
The name of the property.
nameID
The name ID of the property retrieved by
Shader.PropertyToID
.
value
T... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_880b4cdfbcc5 | unity_docs | rendering | In Unity's 'Global illumination', what is 'Baked Global Illumination' and how does it work? | Unity uses a CPU or GPU lightmapper to store lighting data in your build, in Light Probes,
Reflection Probes
, and textures called
lightmaps
.
Lighting quality is usually better than Enlighten Realtime Global Illumination.
For more information, refer to
Baking lightmaps before runtime
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_24f17a05fdb4 | unity_docs | rendering | Give me an overview of the `ChangeAssetObjectPropertiesEventArgs` class in Unity. | ChangeAssetObjectPropertiesEventArgs
struct in
UnityEditor
Description
A change of this type indicates that a property of an asset object in memory has changed. This happens for example when
Undo.RecordObject
is used with an instance of an asset (e.g.
Texture
). Note that this only covers changes to asset objec... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a54d987dcc14 | unity_docs | scripting | What is `UIElements.INotifyValueChangedExtensions` in Unity? Explain its purpose and usage. | INotifyValueChangedExtensions
class in
UnityEngine.UIElements
/
Implemented in:
UnityEngine.UIElementsModule
Description
INotifyValueChangedExtensions is a set of extension methods useful for objects implementing INotifyValueChanged_1.
Static Methods
Method
Description
RegisterValueChangedCallback
Regis... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_93dd4555095a | unity_docs | scripting | In Unity's 'JSON Serialization', what is 'Supported types' and how does it work? | The JSON Serializer API supports any MonoBehaviour subclass,
ScriptableObject
subclass, or plain class or struct with the
[Serializable]
attribute. When you pass in an object to the standard Unity serializer for processing, the same rules and limitations apply as they do in the Inspector: Unity serializes fields only; ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_796663de8561 | unity_docs | physics | Explain 'OnCollision events' in Unity. | Collision events occur when two non-trigger colliders make contact.
Example uses for collision events include:
When a projectile hits a target, destroy both the projectile and the enemy.
When a player character touches a door, trigger an animation to open the door.
When a player character touches a power-up, increase t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9e4fe5a04db6 | unity_docs | scripting | Show me a Unity C# example demonstrating `ParticleSystem.trails`. | ParticleSystem.TrailModule
trails
;
Description
Script interface for the TrailsModule of a Particle System.
This module adds trails to your particles. Trails can either be left in the wake of particles as they move, or can connect each particle in the system together.
Particle System modules do not need to be re... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_812d18fbeb3c | unity_docs | physics | What is `ParticlePhysicsExtensions.SetTriggerParticles` in Unity? Explain its purpose and usage. | ParticlePhysicsExtensions.SetTriggerParticles(ParticleSystem,ParticleSystemTriggerEventType,Particle[],int,int)
Parameters
Parameter
Description
ps
Particle system.
type
Type of trigger to set particles for.
particles
Particle array.
offset
Offset into the array, if you only want to write back a subset of t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5d3846df8cb5 | unity_docs | scripting | What is `Video.VideoClip.pixelAspectRatioNumerator` in Unity? Explain its purpose and usage. | VideoClip.pixelAspectRatioNumerator
public uint
pixelAspectRatioNumerator
;
Description
Returns the numerator of the pixel aspect ratio (numerator:denominator). (Read Only).
The pixel aspect ratio (for example, 10:11) determines the shape of each pixel. The first number (10) is the numerator and is the width of... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0890d8f84f80 | unity_docs | editor | What is `SceneManagement.SceneManager.sceneCountInBuildSettings` in Unity? Explain its purpose and usage. | SceneManager.sceneCountInBuildSettings
public static int
sceneCountInBuildSettings
;
Description
Number of Scenes in Build Settings.
The number of Scenes which have been added to the
Build Settings
.
The Editor will contain Scenes that were open before entering playmode. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ab1b18114248 | unity_docs | physics | What are the parameters of `Physics2D.Raycast` in Unity? | Returns RaycastHit2D The cast results returned. Description Casts a ray against Colliders in the Scene. A raycast is conceptually like a laser beam that is fired from a point in space along a particular direction. Any object making contact with the beam can be detected and reported. This function returns a RaycastHit2D... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_f8fbcc8e26e9 | github | scripting | Write a Unity C# MonoBehaviour script called Grid Minimap Source Base | ```csharp
using FactoryMustScale.Simulation;
using UnityEngine;
namespace FactoryMustScale.Runtime.Visualization
{
/// <summary>
/// Adapter contract for exposing minimap-ready read-only grid arrays.
/// Implementations must return stable references without per-frame allocations.
/// </summary>
pub... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_a9f3868b5f82 | unity_docs | editor | What is `PackageManager.PackageCollection` in Unity? Explain its purpose and usage. | PackageCollection
class in
UnityEditor.PackageManager
Description
A collection of
PackageInfo
objects that you can iterate over.
Implements IEnumerable <PackageInfo> interface.
Properties
Property
Description
error
The error associated with the package collection. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e8302b2bc3cc | unity_docs | rendering | Explain 'Set the graphics API or platform for a shader' in Unity. | By default, Unity compiles all shader programs for each graphics API in the list for the current build target. To compile certain shader programs only for certain graphics APIs or platforms, for example if you use features that aren’t supported on all platforms, use a
#pragma
statement.
Use one of the following in the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b21db0c3bc0f | unity_docs | math | Show me a Unity C# example demonstrating `Mathf.ClosestPowerOfTwo`. | Mathf.ClosestPowerOfTwo
Declaration
public static int
ClosestPowerOfTwo
(int
value
);
Description
Returns the closest power of two value.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
// prints 8
Debug.Log(Mathf.ClosestPowerOfTwo(7)); // prints 16
Debug.Log(Mathf.Close... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_002d3a4e8bb5 | unity_docs | scripting | Show me a Unity C# example demonstrating `Video.VideoPlayer.EventHandler`. | ideoPlayer.started
VideoPlayer.prepareCompleted
VideoPlayer.seekCompleted
This EventHandler doesn't accept events that have parameters.
Additional resources: For EventHandlers that can accept parameters, refer to VideoPlayer.ErrorEventHandler which handles
VideoPlayer.errorReceived
, VideoPlayer.FrameReadyEventHan... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8d1ab844baf6 | unity_docs | physics | What is `Cloth.GetVirtualParticleWeights` in Unity? Explain its purpose and usage. | Cloth.GetVirtualParticleWeights
Declaration
public void
GetVirtualParticleWeights
(List<Vector3>
weightsOutList
);
Parameters
Parameter
Description
weights
List to populate with virtual particle weights.
Description
Get weights to be used when generating virtual particles for cloth.
Virtual particles pro... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_aeeac1dfa44e | unity_docs | rendering | Explain 'Shadow cascades' in Unity. | Resources for reducing pixelated shadows from a directional light by using multiple shadow maps.
Page Description Introduction to shadow cascades
Understand how shadow cascades help you improve shadow quality without increasing the shadow map resolution.
Configure shadow cascades
Increase or decrease the number of shad... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c63e34d02978 | unity_docs | editor | What are the parameters of `TypeCache.GetFieldsWithAttribute` in Unity? | Returns FieldInfoCollection Returns an unordered FieldInfo collection of fields marked with the T attribute. If assemblyName is specified, returns only fields defined in this assembly. Description Retrieves an unordered collection of fields marked with the T attribute. This method provides fast access to all class fiel... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3edd8a82b645 | unity_docs | scripting | What is `Vector3.operator_ne` in Unity? Explain its purpose and usage. | Vector3.operator !=
public static bool
operator !=
(
Vector3
lhs
,
Vector3
rhs
);
Description
Returns true if vectors are different.
Very close vectors are treated as being equal.
```csharp
using UnityEngine;
using System.Collections;public class ExampleClass : MonoBehaviour
{
public Transform other; voi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e1ec7d6e1694 | unity_docs | editor | What is `Experimental.Rendering.ScriptableBakedReflectionSystem` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
ScriptableBakedReflectionSystem
class in
UnityEditor.Experimental.Rendering
Implements interfaces:
IScriptableBakedReflectionSystem
Description
Empty implementation of
IScriptableBakedReflectionSystem
.
Use this class as a b... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_816775f4f807 | unity_docs | rendering | What is `Rendering.BatchRendererGroup.SetPickingMaterial` in Unity? Explain its purpose and usage. | BatchRendererGroup.SetPickingMaterial
Declaration
public void
SetPickingMaterial
(
Material
material
);
Parameters
Parameter
Description
material
Unity Material.
Description
Set the material that Unity uses to render object picking data using the draw commands in the Scene view.
Note:
This function does... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0039988eeb7d | unity_docs | math | What is `HumanTrait.GetMuscleDefaultMin` in Unity? Explain its purpose and usage. | HumanTrait.GetMuscleDefaultMin
Declaration
public static float
GetMuscleDefaultMin
(int
i
);
Parameters
Parameter
Description
i
Muscle index.
Description
Get the default minimum value of rotation for a muscle in degrees.
The default minimum applies to all three axes of rotation for the muscle. The indexin... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ea35e354f2de | unity_docs | scripting | In Unity's 'Integrating Unity into native iOS applications', what is 'UnityFramework class' and how does it work? | You can control the Unity runtime through an instance of the UnityFramework Objective-C class, which is a principal class of
UnityFramework.framework
:
Method
Description
+ (UnityFramework*)getInstance;
Singleton class method that returns an instance to
UnityFramework
.
- (UnityAppController*)appController;
Returns the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7d1b874b7bb3 | unity_docs | rendering | What is `MaterialEditor.GetMaterialProperty` in Unity? Explain its purpose and usage. | MaterialEditor.GetMaterialProperty
Declaration
public static
MaterialProperty
GetMaterialProperty
(Object[]
mats
,
string
name
);
Declaration
public static
MaterialProperty
GetMaterialProperty
(Object[]
mats
,
int
propertyIndex
);
Parameters
Parameter
Description
mats
The selected materials.
name... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_d750cfa0ba26 | unity_docs | scripting | In Unity's 'Use environment variables to identify your web proxy', what is 'Proxy environment variable values that exclude authentication information' and how does it work? | If your environment variable definitions can exclude authentication information, the proxy value takes the following form:
```
http://<proxy_name_or_IP_address>:<proxy_port>
```
Example:
```
http://webproxy.mycompany.com:8080
``` | 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.