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_man_7ee5f32f801a | unity_docs | animation | In Unity's 'Deterministic builds introduction', what is 'Use a cache server to preserve determinism' and how does it work? | To achieve deterministic builds in Unity, the most effective method is to force all machines to share identical imported assets via
Unity Accelerator
.
When multiple developers connect to the same remote Accelerator , each machine reuses the same imported artifacts instead of re-importing locally.
Unity Accelerator has... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e1984e533ce5 | unity_docs | scripting | Give me an overview of the `AndroidShowActivityIndicatorOnLoading` class in Unity. | AndroidShowActivityIndicatorOnLoading
enumeration
Description
Application should show ActivityIndicator when loading.
Additional resources:
PlayerSettings.Android.showActivityIndicatorOnLoading
.
Properties
Property
Description
Large
Large.
InversedLarge
Inversed Large.
Small
Small.
InversedSmall
Inversed ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_e49c4de41371 | github | scripting | Write a Unity Editor script for SPZ File Reader | ```csharp
// SPDX-License-Identifier: MIT
using System.IO;
using Unity.Collections;
using System.IO.Compression;
using GaussianSplatting.Runtime;
using Unity.Burst;
using Unity.Jobs;
using Unity.Mathematics;
using UnityEngine;
namespace GaussianSplatting.Editor.Utils
{
// reads Niantic/Scaniverse .SPZ files:
... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_man_095098a35174 | unity_docs | input | In Unity's 'Mobile device input', what is 'Multi-touch screen' and how does it work? | The iPhone, iPad and iPod Touch devices are capable of tracking up to five fingers touching the screen simultaneously. You can retrieve the status of each finger touching the screen during the last frame by accessing the
Input.touches
property array.
Android devices don’t have a unified limit on how many fingers they t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8af97bf1620c | unity_docs | scripting | What is `Experimental.GraphView.GraphViewToolWindow` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphViewToolWindow
class in
UnityEditor.Experimental.GraphView
/
Inherits from:
EditorWindow
Description
Abstract base class for a GraphView tool window.
A GraphView tool window is a window with a toolbar that lets the user... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2e22172219aa | unity_docs | scripting | Show me a Unity C# example demonstrating `Application.Quit`. | plication to the background via
Activity.moveTaskToBack
. For more information, refer to
Quit a Unity Android application
.
For iOS platform, in most cases the termination of application should be left at the user's discretion. Calling
Application.Quit
method in iOS Player might appear to the user that the applicat... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3be026aadf50 | unity_docs | editor | What is `EditorGUILayout.GetControlRect` in Unity? Explain its purpose and usage. | EditorGUILayout.GetControlRect
Declaration
public static
Rect
GetControlRect
(params GUILayoutOption[]
options
);
Declaration
public static
Rect
GetControlRect
(bool
hasLabel
,
params GUILayoutOption[]
options
);
Declaration
public static
Rect
GetControlRect
(bool
hasLabel
,
float
height
,
params ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_71f51deb2240 | unity_docs | scripting | What is `Rendering.BatchCullingContext.cullingFlags` in Unity? Explain its purpose and usage. | BatchCullingContext.cullingFlags
public
Rendering.BatchCullingFlags
cullingFlags
;
Description
Additional culling information for the current context.
Additional resources:
BatchCullingFlags
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_12680b960936 | unity_docs | xr | In Unity's 'Scripting API for packages', what is 'Adding a package to the project' and how does it work? | This example demonstrates how to use the Client class to install or add a package to the project.
You can use
Client.Add
to add a package. When you call the
Client.Add
method, you can specify just the package name, or the name with a specific version. For example, using
Client.Add("com.unity.textmeshpro")
installs (or ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b1c876edd001 | unity_docs | input | What is `Cursor.lockState` in Unity? Explain its purpose and usage. | Cursor.lockState
public static
CursorLockMode
lockState
;
Description
Determines whether the hardware pointer is locked to the center of the view, constrained to the window, or not constrained at all.
A locked cursor is positioned in the center of the view and cannot be moved. The cursor is invisible in this ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_998cb0676e33 | unity_docs | scripting | What are the parameters of `GUILayoutUtility.GetRect` in Unity? | Returns Rect A rectangle that is large enough to contain content when rendered in style. Description Reserve layout space for a rectangle for displaying some contents with a specific style. ```csharp
using UnityEngine;public class ExampleScript : MonoBehaviour
{
// Shows the button rect properties in a label when t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_94c216cb2541_doc_5 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | The type of questions (what is displayed). Either Object, Text, Video or DifferingTypes (any of the first three).
Signature:
```csharp
public AnswerOrdering answerOrdering = AnswerOrdering.Randomize;
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_62dfbf908f2c | unity_docs | scripting | What is `UIElements.Experimental.StyleValues.borderLeftWidth` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
StyleValues.borderLeftWidth
public float
borderLeftWidth
;
Description
Space reserved for the left edge of the border during the layout phase. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a13c37784b95 | unity_docs | scripting | What is `Search.SearchExpression.FormatItem` in Unity? Explain its purpose and usage. | SearchExpression.FormatItem
Declaration
public static string
FormatItem
(
Search.SearchContext
ctx
,
Search.SearchItem
item
,
string
formatString
);
Parameters
Parameter
Description
ctx
SearchContext that yielded the SearchItem.
item
SearchItem to select value from.
formatString
Format string that m... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bfaebc1795c9 | unity_docs | math | What is `HandleUtility.DistancePointToLine` in Unity? Explain its purpose and usage. | HandleUtility.DistancePointToLine
Declaration
public static float
DistancePointToLine
(
Vector2
p
,
Vector2
a
,
Vector2
b
);
Description
Distance from a point
p
in 2d to a line defined by two points
a
and
b
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_58dfbef7575d | unity_docs | scripting | What is `Experimental.Rendering.GraphicsFormat.R8G8B8A8_UNorm` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormat.R8G8B8A8_UNorm
Description
A four-component, 32-bit unsigned normalized format that has an 8-bit R component in byte 0, an 8-bit G component in byte 1, an 8-bit B component in byte 2, and an 8-bit A component in by... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_204dcb6c595a | unity_docs | physics | Show me a Unity C# example demonstrating `Physics.Raycast`. | a hit, or whether to use the global
Physics.queriesHitTriggers
setting.
Notes:
Raycasts will not detect Colliders for which the Raycast origin is inside the Collider. In all these examples
FixedUpdate
is used rather than
Update
. Refer to
Order of execution for event functions
to understand the difference betwe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_938b3b03e198_doc_3 | github | scripting | What does `InheritorOnDestroy` do in this Unity script? Explain its purpose and signature. | Called in OnDestroy. Always called once in object lifetime and called only if complementary call to InheritorAwake was invoked.
Signature:
```csharp
protected virtual void InheritorOnDestroy()
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_842d0040791a | unity_docs | performance | What are the parameters of `Unity.Profiling.LowLevel.Unsafe.ProfilerUnsafeUtility.BeginSample` in Unity? | Description Starts profiling a piece of code marked with a custom name that the markerPtr handle has defined. Code marked with BeginSample and EndSample shows up in the Profiler hierarchy.
Always use EndSample to close a started section of the instrumented code. Note: Both BeginSample and EndSample are thread safe and ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fad7df4a1f8d | unity_docs | editor | Show me a Unity C# example demonstrating `EditorGUILayout.BeginFoldoutHeaderGroup`. | n
Make a label with a foldout arrow to the left of it.
This is useful for folder-like structures, where child objects only appear if you've unfolded the parent folder. This control cannot be nested in another BeginFoldoutHeaderGroup. To use multiple of these foldouts, you must end each method with EndFoldoutHeaderGro... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_cdb889048899 | unity_docs | rendering | In Unity's 'Android App Manifest', what is 'Generating an Android App Manifest' and how does it work? | The
Android application build process
generate an Android App Manifest file for the application. To do this:
Unity uses the Unity Library Manifest as a template for the Android App Manifest. If you
override the Unity Library Manifest
, Unity uses the file you specify as the template.
Unity updates the Unity Library Man... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2359c5ea229a | unity_docs | scripting | What is `IMGUI.Controls.TreeView.DragAndDropArgs.insertAtIndex` in Unity? Explain its purpose and usage. | TreeView.DragAndDropArgs.insertAtIndex
public int
insertAtIndex
;
Description
This index refers to the index in the children list of the parentItem where the current drag is positioned.
Use this index to control what should happen when items are dropped. This value is 0 or higher if the dragPosition is BetweenI... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_eb65257746ef | unity_docs | rendering | In Unity's 'Configure graphics APIs', what is 'Override default graphics APIs' and how does it work? | You can override the default graphics APIs and use an alternate graphics API for the Editor and Player. Use the following steps:
In the
Player settings
>
Other settings
>
Rendering
section, disable the
Auto Graphics API for a platform (Windows/Mac/Linux)
.
When
Auto Graphics API for a platform (Windows/Mac/Linux)
is di... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b4f4d62e440e | unity_docs | scripting | What is `Events.UnityEvent_1` in Unity? Explain its purpose and usage. | UnityEvent<T0>
class in
UnityEngine.Events
/
Inherits from:
Events.UnityEventBase
/
Implemented in:
UnityEngine.CoreModule
Description
One argument version of
UnityEvent
.
Generics are supported, specify a type parameter on initialization as shown in the example. Refer to
Configure callbacks in the Inspecto... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_766fc2595632 | unity_docs | animation | What is `ArmDof.LastArmDof` in Unity? Explain its purpose and usage. | ArmDof.LastArmDof
Description
The last value of the
ArmDof
enum.
This value can be used in
for
loops.
```csharp
using UnityEngine;using UnityEngine.Animations;public class ExampleClass : MonoBehaviour
{
void Start()
{
for (int i = 0; i < (int)ArmDof.LastArmDof; ++i)
{
var handle = new MuscleHandle(HumanPa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3b6f1bdf68fd | unity_docs | rendering | What is `Rendering.SynchronisationStageFlags` in Unity? Explain its purpose and usage. | SynchronisationStageFlags
enumeration
Description
Describes the various stages of GPU processing against which the GraphicsFence can be set and waited against.
The enum values can be combined; for example, a GraphicsFence created with SynchronisationStageFlags.VertexProcessing | SynchronisationStageFlags.ComputePr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_e3638f791235_doc_4 | github | scripting | What does `CodeGeneratorType` do in this Unity script? Explain its purpose and signature. | Get CodeGeneratorType using
Signature:
```csharp
protected Type CodeGeneratorType => Type.GetType(CodeGeneratorTypeName);
``` | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_a77946c79eb8 | unity_docs | editor | What is `SelectionMode` in Unity? Explain its purpose and usage. | SelectionMode
enumeration
Description
Determine the selection returned by
Selection.GetTransforms
.
The default transform selection mode is:
SelectionMode.TopLevel
|
SelectionMode.ExcludePrefab
|
SelectionMode.Editable
, which returns all parent transforms of objects that can be edited, and aren't prefabs.
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_573509e8b7c4 | unity_docs | performance | Give me an overview of the `GraphicsJobMode` class in Unity. | GraphicsJobMode
enumeration
Description
Enum used to specify the graphics jobs mode to use.
Additional resources:
PlayerSettings.graphicsJobMode
.
Properties
Property
Description
Native
Native Graphics Jobs.
Legacy
Legacy Graphics Jobs ("Jobified Rendering").
Split
Split Graphics Jobs. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f4652287e758 | unity_docs | physics | Show me a Unity C# example demonstrating `MonoBehaviour.OnCollisionStay`. | t use collisionInfo in the function, leave out the collisionInfo parameter as this avoids unneccessary calculations.
Note:
Collision events are only sent if one of the colliders also has a non-kinematic rigidbody attached. Collision events will be sent to disabled MonoBehaviours, to allow enabling Behaviours in respon... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b7a58368b80c | unity_docs | input | Give me an overview of the `UILineInfo` class in Unity. | UILineInfo
struct in
UnityEngine
/
Implemented in:
UnityEngine.TextRenderingModule
Description
Information about a generated line of text.
Properties
Property
Description
height
Height of the line.
leading
Space in pixels between this line and the next line.
startCharIdx
Index of the first character in the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6dc69244499c | unity_docs | scripting | What is `AI.NavMeshAgent.pathStatus` in Unity? Explain its purpose and usage. | NavMeshAgent.pathStatus
public
AI.NavMeshPathStatus
pathStatus
;
Description
The status of the current path (complete, partial or invalid).
Returns
NavMeshPathStatus.PathInvalid
if either the path is invalid, or the agent is not yet initialized. (Additional resources:
NavMeshPath.status
.) | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ca4a92ac1fef | unity_docs | scripting | What is `ChangeGameObjectParentEventArgs.previousScene` in Unity? Explain its purpose and usage. | ChangeGameObjectParentEventArgs.previousScene
public
SceneManagement.Scene
previousScene
;
Description
The scene containing the previous parent. This is useful to detect whether a
GameObject
was moved to another scene. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8f60fdd5b5ba | unity_docs | editor | What is `SceneManagement.EditorSceneManager.GetSceneManagerSetup` in Unity? Explain its purpose and usage. | EditorSceneManager.GetSceneManagerSetup
Declaration
public static SceneSetup[]
GetSceneManagerSetup
();
Returns
SceneSetup[]
An array of SceneSetup classes - one item for each Scene.
Description
Returns the current setup of the SceneManager.
The returned array contains SceneSetup instances, one for each S... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b7e936bc1fbd | unity_docs | scripting | What is `GUIStyle.DrawWithTextSelection` in Unity? Explain its purpose and usage. | GUIStyle.DrawWithTextSelection
Declaration
public void
DrawWithTextSelection
(
Rect
position
,
GUIContent
content
,
int
controlID
,
int
firstSelectedCharacter
,
int
lastSelectedCharacter
);
Description
Draw this GUIStyle with selected content. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_362a56f6e6ae | unity_docs | xr | Explain 'Search preferences reference' in Unity. | Use the Search preferences to set your search preferences for the Editor.
You can also access the Search preferences in one of the following ways:
Enter
?
(question mark) in the search field and select
Open Search Preferences
from the results.
From
More Options (
:
)
in the top-left of the Search window, select
Prefere... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_49bbe0722b37 | unity_docs | scripting | What is `AndroidJNI.SetSByteField` in Unity? Explain its purpose and usage. | AndroidJNI.SetSByteField
Declaration
public static void
SetSByteField
(IntPtr
obj
,
IntPtr
fieldID
,
sbyte
val
);
Description
Sets the value of an instance field of the specified object.
Additional resources:
Java Native Interface Specification (Oracle) | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_7161e2b8f381 | unity_docs | physics | In Unity's 'Custom scripting symbols', what is 'Custom symbols for a platform' and how does it work? | You can define custom scripting symbols specific to a platform as follows:
Open
Player settings
.
Navigate to the
Scripting Define Symbols
list in the
Other Settings
>
Script Compilation
section.
Add new scripting symbols to the list by selecting the
+
button and typing the name of the symbol in the text field. Remove ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c21aa6f77211 | unity_docs | rendering | What is `Android.DiagnosticsReporting.CallReportFullyDrawn` in Unity? Explain its purpose and usage. | DiagnosticsReporting.CallReportFullyDrawn
Declaration
public static void
CallReportFullyDrawn
();
Description
Calls
reportFullyDrawn()
on the main Activity in the Android application, which is used for diagnostic and optimization purposes in Android. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d8a377c0649c | unity_docs | scripting | What is `MPE.ChannelClientInfo.name` in Unity? Explain its purpose and usage. | ChannelClientInfo.name
public string
name
;
Description
The ChannelClient's name (see
ChannelClient.channelName
. This matches the route of the URL connecting to the ChannelService. For example, "127.0.0.1:9292/<channelName>". | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_e770e4ea46ee_doc_7 | github | scripting | What does `GetCurrentSDKLocation` do in this Unity script? Explain its purpose and signature. | Gets the current SDK location. If none is found. returns the mlsdk folder
Signature:
```csharp
public static string GetCurrentSDKLocation()
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_3c6cfdcf16ee | unity_docs | rendering | Explain 'Check lightmap UVs' in Unity. | It is important to be able to view the lightmap UVs that are being used, and Unity has a visualization tool to help you with this. First, open the Lighting window (menu:
Window
>
Rendering
>
Lighting
) and tick the Auto checkbox at the bottom. This ensures that your bake and precompute are up-to-date, and outputs the d... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_800eba84ca83 | unity_docs | scripting | What is `IMGUI.Controls.TreeView.baseIndent` in Unity? Explain its purpose and usage. | TreeView.baseIndent
protected float
baseIndent
;
Description
Indent used for all rows before the tree foldout arrows and content.
Set this to control the left margin of the tree view foldouts, for example to create a column for placing GUI elements to the left of the tree foldouts. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_de630284cdf7 | unity_docs | scripting | What is `PlayerSettings.usePlayerLog` in Unity? Explain its purpose and usage. | PlayerSettings.usePlayerLog
public static bool
usePlayerLog
;
Description
Write a log file with debugging information.
This is useful to find out what happened if there are problems with your game.
When publishing games for Apple's Mac App Store, it is recommended to turn this off,
because Apple may reject you... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c79fc0a5c6e0 | unity_docs | performance | What is `Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle.SetBumpSecondaryVersionOnScheduleWrite` in Unity? Explain its purpose and usage. | AtomicSafetyHandle.SetBumpSecondaryVersionOnScheduleWrite
Declaration
public static void
SetBumpSecondaryVersionOnScheduleWrite
(
Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle
handle
,
bool
value
);
Parameters
Parameter
Description
handle
The AtomicSafetyHandle to check.
value
Use
true
to bump t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fdec6660a7fc | unity_docs | scripting | Show me a Unity C# example demonstrating `Animations.GameObjectRecorder`. | e information into an
AnimationClip
.
This class binds
GameObject
properties, records their values as they change in the running Scene, and saves the result in an
AnimationClip
. The recorded GameObject is called
root
in the class, and you can also bind the properties of any child of
root
.
See the following co... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_236beede7d2f | unity_docs | scripting | What is `UIElements.LanguageDirection` in Unity? Explain its purpose and usage. | LanguageDirection
enumeration
Description
Indicates the directionality of the element's text.
Properties
Property
Description
Inherit
Inherits the directionality from the nearest ancestor with a specified directionality.
LTR
Left to right language direction.
RTL
Right to left language direction. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7c83369baa94 | unity_docs | xr | What is `Networking.DownloadHandler.GetProgress` in Unity? Explain its purpose and usage. | DownloadHandler.GetProgress
Declaration
protected float
GetProgress
();
Returns
float
The return value for
UnityWebRequest.downloadProgress
.
Description
Callback, invoked when
UnityWebRequest.downloadProgress
is accessed.
This callback will be invoked when scripts access the
UnityWebRequest.downloadP... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b86b6b8b71ed | unity_docs | scripting | What is `Unity.Android.Gradle.Manifest.UsesPermission` in Unity? Explain its purpose and usage. | UsesPermission
class in
Unity.Android.Gradle.Manifest
/
Inherits from:
Unity.Android.Gradle.Manifest.BaseElement
Description
The C# definition of the
<uses-permission>
Android Manifest element.
For more information about the element, see Android's documentation:
UsesPermission element
Properties
Property... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_c37ca043b43d | github | scripting | Write a Unity C# MonoBehaviour script called Singleton Behaviour | ```csharp
using UnityEngine;
namespace BcoffeeDev.Patterns
{
public class SingletonBehaviour<T> : MonoBehaviour where T : MonoBehaviour
{
public static T Instance { get; private set; }
protected virtual void Awake()
{
Instance = this as T;
}
}
}
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_31726b79d0ef | unity_docs | scripting | What is `ParticleSystem.NoiseModule.strengthY` in Unity? Explain its purpose and usage. | ParticleSystem.NoiseModule.strengthY
public
ParticleSystem.MinMaxCurve
strengthY
;
Description
Define the strength of the effect on the y-axis, when using the
ParticleSystem.NoiseModule.separateAxes
option.
Additional resources:
MinMaxCurve
.
```csharp
using UnityEngine;
using System.Collections;[Require... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8e1a12ce39b0 | unity_docs | physics | What is `ArticulationBody.AddRelativeTorque` in Unity? Explain its purpose and usage. | ArticulationBody.AddRelativeTorque
Declaration
public void
AddRelativeTorque
(
Vector3
torque
,
ForceMode
mode
= ForceMode.Force);
Parameters
Parameter
Description
torque
The torque vector in local coordinates.
mode
The type of torque to apply.
Description
Applies a
torque
to the articulation bod... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_16224555b517 | unity_docs | math | What is `Plane.GetDistanceToPoint` in Unity? Explain its purpose and usage. | Plane.GetDistanceToPoint
Declaration
public float
GetDistanceToPoint
(
Vector3
point
);
Description
Returns a signed distance from plane to point.
The value returned is positive if the point is on the side of the plane into which the plane's
normal is facing, and negative otherwise. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_6a8b4e047aa2 | github | scripting | Write a Unity C# script called Scaling Direct Interactor | ```csharp
using UnityEngine;
using UnityEngine.InputSystem;
using UnityEngine.XR.Interaction.Toolkit;
using ExPresSXR.Interaction;
using Unity.XR.CoreUtils;
namespace ExPresSXR.Rig
{
public class ScalingDirectInteractor : XRDirectInteractor
{
[SerializeField]
private bool _scalingEnabled = true... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_7e83d9a46bef | unity_docs | physics | Give me an overview of the `Rigidbody` class in Unity. | Rigidbody
class in
UnityEngine
/
Inherits from:
Component
/
Implemented in:
UnityEngine.PhysicsModule
Description
Control of an object's position through physics simulation.
Adding a Rigidbody component to an object will put its motion under the control of Unity's physics engine. Even without adding any code... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ee9e5615fddd | unity_docs | scripting | What is `Windows.Speech.PhraseRecognitionSystem.OnStatusChanged` in Unity? Explain its purpose and usage. | PhraseRecognitionSystem.OnStatusChanged
Parameters
Parameter
Description
value
Delegate that will be invoked when the event occurs.
Description
Event which occurs when the status of the phrase recognition system changes. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cc3c5f40edf9 | unity_docs | rendering | What is `Cloth.useTethers` in Unity? Explain its purpose and usage. | Cloth.useTethers
public bool
useTethers
;
Description
Use Tether Anchors.
Apply constraints that help to prevent the moving cloth particles from going too far away from the fixed ones. This helps to reduce excess stretchiness. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fedb0db1a341 | unity_docs | math | What is `AndroidJNI.CallVoidMethodUnsafe` in Unity? Explain its purpose and usage. | AndroidJNI.CallVoidMethodUnsafe
Declaration
public static void
CallVoidMethodUnsafe
(IntPtr
obj
,
IntPtr
methodID
,
jvalue*
args
);
Description
Calls a Java instance method defined by
methodID
, optionally passing an array of arguments (
args
) to the method.
Additional resources:
Java Native Interface Spe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5ae1e0d605b8 | unity_docs | rendering | What is `Rendering.SortingCriteria` in Unity? Explain its purpose and usage. | SortingCriteria
enumeration
Description
How to sort objects during rendering.
Control the way Unity sorts objects before drawing them by using and combining these flags.
The basic flags are:
SortingLayer
,
RenderQueue
,
BackToFront
,
QuantizedFrontToBack
,
OptimizeStateChanges
,
CanvasOrder
.
Multiple flag... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_08753d2388b2 | unity_docs | rendering | Give me an overview of the `TextureWrapMode` class in Unity. | TextureWrapMode
enumeration
Description
Wrap mode for textures.
Corresponds to the settings in a
texture inspector
.
Wrap mode determines how texture is sampled when texture coordinates are outside of
the typical 0..1 range. For example,
Repeat
makes the texture tile, whereas
Clamp
makes the texture edge pixe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0fa851ecbd78 | unity_docs | rendering | What are the parameters of `Graphics.SetRenderTarget` in Unity? | Description Sets current render target. This function sets which RenderTexture , GraphicsTexture , or a RenderBuffer combination will be
rendered into next. Use it when implementing custom rendering algorithms, where
you need to render something into a render target texture manually. Variants with mipLevel and face arg... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2eba4822850c | unity_docs | editor | Show me a Unity code example for 'Customize the asset package cache location'. | ion, which you can override. You might want to override the location of this cache for several reasons:
You want to save space on your internal drive.
You want to store the cache on a shared drive, which is accessible to others.
You want to store the cache in a folder that’s not in a system directory.
By default, the P... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_458f622d1a2c | unity_docs | animation | What is `AnimationCurve.AddKey` in Unity? Explain its purpose and usage. | AnimationCurve.AddKey
Declaration
public int
AddKey
(float
time
,
float
value
);
Parameters
Parameter
Description
time
The time at which to add the key (horizontal axis in the curve graph).
value
The value for the key (vertical axis in the curve graph).
Returns
int
The index of the added key, or -1 if... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_921834ce4692 | unity_docs | rendering | In Unity's 'Supported asset type reference', what is '3D model importers' and how does it work? | Unity uses the FBX file format as its importing chain. For a list of 3D modeling software that Unity supports, refer to
Model file formats
.
Importer Description Supported file formats FBXImporter Imports 3D model files. For more information, refer to
Importing a model
..blend.c4d.dae.dxf.fbx.jas.lxo.ma.mb.max.obj Mesh... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_e4cce36f7fcf | github | scripting | Write a Unity C# XR/VR script for Passthrough Camera Permissions | ```csharp
// Copyright (c) Meta Platforms, Inc. and affiliates.
using System.Collections.Generic;
using System.Linq;
using Meta.XR.Samples;
using UnityEngine;
#if UNITY_ANDROID
using UnityEngine.Android;
using PCD = PassthroughCameraSamples.PassthroughCameraDebugger;
#endif
namespace PassthroughCameraSamples
{
/... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_man_a136b1ebe7d9 | unity_docs | rendering | Explain 'Reflective Normal Mapped Unlit' in Unity. | Note.
Unity 5 introduced the
Standard Shader
which replaces this
shader
.
## Reflective Properties
Note.
Unity 5 introduced the
Standard Shader
which replaces this shader.
This shader will simulate reflective surfaces such as cars, metal objects etc. It requires an environment Cubemap which will define what exactly i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_af5c231f2d7c | unity_docs | editor | What is `Compilation.AssembliesType` in Unity? Explain its purpose and usage. | AssembliesType
enumeration
Description
Flags for
Assembly
.
Properties
Property
Description
Editor
Selects assemblies compiled for the editor including test assemblies.
Player
Selects assemblies compiled for the player including test assemblies.
PlayerWithoutTestAssemblies
Selects assemblies compiled for the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_221713f444a3_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Destroys the given GameObject if it is not null, then creates a child GameObject with the given TComponent component and assigns it to the reference.IHierarchyBehaviour's will be initialized.Can be null, if it is not then it will be destroyed.The new TComponent
Signature:
```csharp
public static TComponent OverwriteCh... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_71d019d5c482 | unity_docs | math | Show me a Unity C# example demonstrating `Matrix4x4.determinant`. | Matrix4x4.determinant
public float
determinant
;
Description
The determinant of the matrix. (Read Only)
You can not invert matrices with a determinant of zero.
```csharp
using UnityEngine;public class ExampleScript : MonoBehaviour
{
void Update()
{
// create a transformation matrix with scale, zero position... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_24a18280dd86 | unity_docs | scripting | Explain 'Distribute assets as packages' in Unity. | Asset packages are collections of files and data from Unity projects, or elements of projects, which Unity compresses and stores in one file with the.unitypackage
extension. Like a zip file, an
asset package
maintains its original directory structure when it’s unpacked. An asset package also has metadata about assets, ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fb81132dba41 | unity_docs | physics | What is `PhysicsShapeGroup2D.Add` in Unity? Explain its purpose and usage. | PhysicsShapeGroup2D.Add
Declaration
public void
Add
(
PhysicsShapeGroup2D
physicsShapeGroup
);
Parameters
Parameter
Description
physicsShapeGroup
The
PhysicsShapeGroup2D
to add to this shape group. (Read Only)
Description
Adds a copy of all the
PhysicsShape2D
and their geometry from the specified
phy... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_9e4233b7d4eb | unity_docs | scripting | In Unity's 'Animation from external sources', what is 'Import animation files' and how does it work? | Before you can use any animation in Unity, you must first import it into your project. Unity can import Autodesk® Maya® (.mb or .ma), Autodesk® 3ds Max® (.max), and Blender™ (.blend), and also generic FBX files which
you can export from most animation software
. Note that importing from .blend files requires a local in... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_74ebceaa105f | unity_docs | rendering | Explain 'Configure the asynchronous upload pipeline' in Unity. | Unity provides optimization settings specific to the asynchronous upload pipeline. To access these settings, open the Project’s
Quality settings
.
Note that you cannot configure settings for the synchronous upload pipeline.
## Configure the streaming buffer for mesh data
Unity re-uses a single ring buffer to stream t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a23a9abd0355 | unity_docs | scripting | What is `ObjectChangeEventStream.Builder.PushCreateAssetObjectEvent` in Unity? Explain its purpose and usage. | ObjectChangeEventStream.Builder.PushCreateAssetObjectEvent
Declaration
public void
PushCreateAssetObjectEvent
(ref
CreateAssetObjectEventArgs
data
);
Parameters
Parameter
Description
data
The event data to add to the stream.
Description
Adds an
CreateAssetObjectEventArgs
to the end of the stream. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_67fa455b413b | unity_docs | rendering | Explain 'Scene view reference' in Unity. | Use the Scene view to visualize and interact with the world you create in the Unity Editor. In the
Scene view
, you can select, manipulate, and modify GameObjects that act as scenery, characters,
cameras
, lights, and more.
Topic Description Scene view navigation
Move around the Scene view efficiently.
Scene view conte... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c8433cf25281 | unity_docs | animation | What is `HumanTrait.RequiredBone` in Unity? Explain its purpose and usage. | HumanTrait.RequiredBone
Declaration
public static bool
RequiredBone
(int
i
);
Parameters
Parameter
Description
i
Index of the bone to test.
Description
Is the bone a member of the minimal set of bones that Mecanim requires for a human model?
The indexing order of the bones is the same as that used for the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d432672677d3 | unity_docs | rendering | What is `PlayerSettings.GetOverrideShaderChunkSettingsForPlatform` in Unity? Explain its purpose and usage. | PlayerSettings.GetOverrideShaderChunkSettingsForPlatform
Declaration
public static bool
GetOverrideShaderChunkSettingsForPlatform
(
BuildTarget
buildTarget
);
Parameters
Parameter
Description
buildTarget
The build target to check the override for.
Description
If the value is
true
, settings for the
bui... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_0439c58fce25 | unity_docs | editor | In Unity's 'Remove local asset packages', what is 'Procedure' and how does it work? | To remove one or more local asset package items from your project:
Open the project you want to remove assets from.
Open the
Package Manager
window and
select a context
from the
navigation panel
.
Select the package you want to remove from your project and take note of the package name
(A)
and the publisher name
(B)
. ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_f43901805fe0 | github | scripting | Write a Unity C# script called Observable Select Trigger | ```csharp
// for uGUI(from 4.6)
#if !(UNITY_4_0 || UNITY_4_1 || UNITY_4_2 || UNITY_4_3 || UNITY_4_4 || UNITY_4_5)
using System; // require keep for Windows Universal App
using UnityEngine;
using UnityEngine.EventSystems;
namespace UniRx.Triggers
{
[DisallowMultipleComponent]
public class ObservableSelectTrig... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_955d76cb4897 | unity_docs | physics | What is `Animator.Update` in Unity? Explain its purpose and usage. | Animator.Update
Declaration
public void
Update
(float
deltaTime
);
Parameters
Parameter
Description
deltaTime
The time delta.
Description
Evaluates the animator based on deltaTime.
Updating the animator with this function might not work well with the physics engine or any other system that is normally ev... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_9a40f0a25678 | unity_docs | ui | In Unity's 'Type selectors', what is 'Example' and how does it work? | To demonstrate how simple selectors match elements, here is an example UI Document.
```
<UXML xmlns="UnityEngine.UIElements">
<VisualElement name="container1">
<VisualElement name="container2" class="yellow">
<Button name="OK" class="yellow" text="OK" />
<Button name="Cancel" text="Cancel" />
</VisualElement>
</V... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7b63df9d795d | unity_docs | physics | What is `Rigidbody2D.AddForceY` in Unity? Explain its purpose and usage. | Rigidbody2D.AddForceY
Declaration
public void
AddForceY
(float
force
,
ForceMode2D
mode
= ForceMode2D.Force);
Parameters
Parameter
Description
force
The force to add to the Y component of the Linear Velocity in the world space of the
Rigidbody2D
.
mode
The method used to apply the specified force.
De... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5cbe333bc9d5 | unity_docs | scripting | What is `GUILayout.MaxWidth` in Unity? Explain its purpose and usage. | GUILayout.MaxWidth
Declaration
public static
GUILayoutOption
MaxWidth
(float
maxWidth
);
Description
Option passed to a control to specify a maximum width.
Maximum allowed width for a window.
```csharp
using UnityEngine;public class ExampleScript : MonoBehaviour
{
// Draws a window you can resize between 8... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a857df8f801f | unity_docs | audio | What is `Audio.AudioClipPlayable.Create` in Unity? Explain its purpose and usage. | AudioClipPlayable.Create
Declaration
public static
Audio.AudioClipPlayable
Create
(
Playables.PlayableGraph
graph
,
AudioClip
clip
,
bool
looping
);
Parameters
Parameter
Description
graph
The
PlayableGraph
that will contain the new
AnimationLayerMixerPlayable
.
clip
The
AudioClip
that will be a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_bf042aabc6a9 | unity_docs | scripting | In Unity's 'ToolbarButton', what is 'Create a ToolbarButton' and how does it work? | You can create a ToolbarButton with UI Builder, UXML, or C#. The following C# example creates a ToolbarButton with a label:
```csharp
using UnityEditor.UIElements;
...
var toolbarButton = new ToolbarButton(() => { Debug.Log("Button clicked"); }) { text = "Click me" };
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_21b60025a769 | unity_docs | math | What is `Tilemaps.Tilemap.ResizeBounds` in Unity? Explain its purpose and usage. | Tilemap.ResizeBounds
Declaration
public void
ResizeBounds
();
Description
Resizes Tiles in the
Tilemap
to bounds defined by
origin
and
size
.
Tiles outside of the bounds will be removed from the
Tilemap
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cf5ab86b6e95 | unity_docs | physics | What are the parameters of `PhysicsScene2D.OverlapArea` in Unity? | Returns Collider2D The collider overlapping the area. Description Checks an area (non-rotated box) against Colliders in the PhysicsScene2D, returning the first intersection only. An "OverlapArea" is conceptually like looking at the Scene through a rectangular shape to determine what can be seen. Any Collider2D seen can... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e0354e951da8 | unity_docs | scripting | Give me an overview of the `WebGLLinkerTarget` class in Unity. | WebGLLinkerTarget
enumeration
Description
The build format options available when building to WebGL.
See
WebGL Player Settings
documentation for more details.
Properties
Property
Description
Asm
Only asm.js output will be generated. This setting has been deprecated.
Wasm
Only WebAssembly output will be gene... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d5931601a61c | unity_docs | scripting | What is `DurationUnit` in Unity? Explain its purpose and usage. | DurationUnit
enumeration
Description
Describe the unit of a duration.
Properties
Property
Description
Fixed
A fixed duration is a duration expressed in seconds.
Normalized
A normalized duration is a duration expressed in percentage. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6805a275eec4 | unity_docs | physics | What is `Physics.RaycastAll` in Unity? Explain its purpose and usage. | Physics.RaycastAll
Declaration
public static RaycastHit[]
RaycastAll
(
Ray
ray
,
float
maxDistance
= Mathf.Infinity,
int
layerMask
= DefaultRaycastLayers,
QueryTriggerInteraction
queryTriggerInteraction
= QueryTriggerInteraction.UseGlobal);
Parameters
Parameter
Description
ray
The starting point and... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4e8908d6ed52 | unity_docs | scripting | Show me a Unity C# example demonstrating `Video.VideoPlayer.Pause`. | eparation and shows the first frame of the video.
If you seek through to a different point in the video and then call
Pause()
before the VideoPlayer finishes preparation, it triggers preparation and shows the frame that was the seek target. For example, if you set
VideoPlayer.time
to
10.0f
and then call
Pause()... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_47fd9f63ec72 | unity_docs | animation | Give me an overview of the `ParticleSystemAnimationMode` class in Unity. | ParticleSystemAnimationMode
enumeration
Description
The animation mode.
Properties
Property
Description
Grid
Use a regular grid to construct a sequence of animation frames.
Sprites
Use a list of sprites to construct a sequence of animation frames. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d66cb964987c | unity_docs | networking | What is `Android.AndroidConfiguration.touchScreen` in Unity? Explain its purpose and usage. | AndroidConfiguration.touchScreen
public
Android.AndroidTouchScreen
touchScreen
;
Description
Mirrors the Android property
touchscreen
.
For information about this property, refer to the Android developer documentation on
touchscreen
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_75019ee867f8 | unity_docs | scripting | What is `Rendering.SphericalHarmonicsL2.Index_operator` in Unity? Explain its purpose and usage. | SphericalHarmonicsL2.this[int,int]
public float
this[int,int]
;
Description
Access individual SH coefficients.
This indexer accesses the spherical harmonics coefficients with two values. The first value is an RGB color channel index between 0 and 2. The second value is an index between 0 and 8 that combines the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_59e652c09da1 | unity_docs | physics | What is `Physics2D.OverlapCircleAll` in Unity? Explain its purpose and usage. | Physics2D.OverlapCircleAll
Declaration
public static Collider2D[]
OverlapCircleAll
(
Vector2
point
,
float
radius
,
int
layerMask
= DefaultRaycastLayers,
float
minDepth
= -Mathf.Infinity,
float
maxDepth
= Mathf.Infinity);
Parameters
Parameter
Description
point
The center of the circle.
radius
The r... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f6c9b68661bf | unity_docs | scripting | In Unity's 'Label', what is 'Example' and how does it work? | The following UXML example creates a Label:
```
<UXML xmlns="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements">
<Label text="UXML Label" name="the-uxml-label" />
</UXML>
```
The following C# example illustrates some of the customizable functionalities of the Label:
```
/// <sample>
// Get a reference to the l... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_94474d1ae900 | unity_docs | rendering | What is `Rendering.BlendState` in Unity? Explain its purpose and usage. | BlendState
struct in
UnityEngine.Rendering
/
Implemented in:
UnityEngine.CoreModule
Description
Values for the blend state.
Additional resources:
RenderStateBlock
,
ShaderLab: Blending
.
Static Properties
Property
Description
defaultValue
Default values for the blend state.
Properties
Property
Descript... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_4e9be5c9d6be | github | scripting | Write a Unity C# MonoBehaviour script called Test Force Inject | ```csharp
using System;
using System.Collections;
using System.Collections.Generic;
using BehaviourInject;
using BehaviourInject.Test;
using UnityEngine;
namespace BehaviourInject.Test
{
public class TestForceInject : MonoBehaviour
{
void Start()
{
Context context = Context.Create()
.RegisterType<Depende... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_d47006294b0c | unity_docs | math | What is `Search.IQueryEngineFilter.AddTypeParser` in Unity? Explain its purpose and usage. | IQueryEngineFilter.AddTypeParser
Declaration
public
Search.IQueryEngineFilter
AddTypeParser
(Func<string,ParseResult<TFilterConstant>>
parser
);
Parameters
Parameter
Description
parser
Callback used to determine if a string can be converted into "TFilterConstant". Takes a string and returns a
ParseResult
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6f7316465dc9 | unity_docs | rendering | Show me a Unity C# example demonstrating `MonoBehaviour.OnBecameInvisible`. | Unity Editor is treated like a regular camera for visibility checks, so
OnBecameInvisible
can be called when objects are visible in the Scene view, even if the application isn't running. Scripts that execute in Edit mode can check
Application.isPlaying
before running important logic in
OnBecameInvisible
to avoid ... | 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.