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_b6178a4673e4 | unity_docs | scripting | What is `UIElements.UxmlBoolAttributeDescription.TryGetValueFromBag` in Unity? Explain its purpose and usage. | UxmlBoolAttributeDescription.TryGetValueFromBag
Declaration
public bool
TryGetValueFromBag
(
UIElements.IUxmlAttributes
bag
,
UIElements.CreationContext
cc
,
ref bool
value
);
Parameters
Parameter
Description
bag
The bag of attributes.
cc
The context in which the values are retrieved.
value
The valu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_6406e0ab100e | unity_docs | physics | In Unity's 'iOS Scripting', what is 'Anti-piracy check' and how does it work? | A common way of hacking an application is by removing the AppStore DRM protection and then redistributing it for free. Use Unity’s anti-piracy check to find out if your application was altered after it was submitted to the AppStore.
Check if your application is genuine (not hacked) with the
Application.genuine
property... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_6ef193b558f5 | unity_docs | scripting | In Unity's 'Rotation and orientation in Unity', what is 'Gimbal lock' and how does it work? | When an object in 3D space loses a degree of freedom and can only rotate within two dimensions, it’s called gimbal lock. Gimbal lock can occur with Euler angles if two axes become parallel.
If you don’t convert the rotational values to Euler angles in your script, the use of quaternions should prevent gimbal lock.
If y... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a6af7acac4cc | unity_docs | scripting | What is `AddComponentMenu.componentOrder` in Unity? Explain its purpose and usage. | AddComponentMenu.componentOrder
public int
componentOrder
;
Description
The order of the component in the component menu (lower values appear higher in the menu).
Note
: The order only affects the component item itself and doesn't influence any submenus.
Scripts are first sorted by their namespace. Scripts with... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4571eff726e3 | unity_docs | editor | What are the parameters of `EditorWindow.GetWindow` in Unity? | Returns EditorWindow An EditorWindow instance of windowType . Description Returns the first EditorWindow of type windowType which is currently on the screen. If there is none, creates and shows new window and returns the instance of it. Simple Empty non-dockable window. ```csharp
using UnityEngine;
using UnityEditor;
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_22520a1d25fe | unity_docs | audio | Show me a Unity C# example demonstrating `Gyroscope.rotationRateUnbiased`. | Description
Returns unbiased rotation rate as measured by the device's gyroscope.
The rotation rate is given as a Vector3 representing the speed of rotation around each of the three
axes in radians per second. This value has been processed to remove "bias" and give a more accurate
measurement. The raw value reporte... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a554297162ff | unity_docs | scripting | In Unity's 'Host a scoped registry for your organization', what is 'Control access to your scoped registry' and how does it work? | If you want full control over who accesses packages in your scoped registry, you can enable
npm authentication
for specific users. Package consumers can then configure
Scoped registry authentication
to use their npm authentication tokens. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_88dd0d4efa1d | unity_docs | scripting | What are the parameters of `Search.SearchUtils.GetHierarchyPath` in Unity? | Returns string Returns the path of a GameObject. Description Get the hierarchy path of a GameObject including the scene name if includeScene is set to true. ```
static string FetchDescription(SearchItem item, SearchContext context)
{
var go = ObjectFromItem(item);
return (item.description = SearchUtils.GetHiera... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7d4d59fca88a | unity_docs | animation | What is `Animations.AnimatorController.GetStateEffectiveBehaviours` in Unity? Explain its purpose and usage. | AnimatorController.GetStateEffectiveBehaviours
Declaration
public StateMachineBehaviour[]
GetStateEffectiveBehaviours
(
Animations.AnimatorState
state
,
int
layerIndex
);
Parameters
Parameter
Description
state
The AnimatorState which we want the Behaviour list.
layerIndex
The layer that is queried.
Desc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ebe58a7d5af1 | unity_docs | performance | Show me a Unity code example for 'Search profiler markers'. | u, select
Window
>
Analysis
>
Performance Markers
.
In the Search window, using a visual or textual query with the provider token. However, the recommended best practice is using the dedicated window for profiler markers, as it provides a better experience.
## Query syntax
Provider token:
profile:
Query example: Sear... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2e40ba5bdb4c | unity_docs | editor | What is `Presets.Preset.SetDefaultPresetsForType` in Unity? Explain its purpose and usage. | Preset.SetDefaultPresetsForType
Declaration
public static bool
SetDefaultPresetsForType
(
Presets.PresetType
type
,
DefaultPreset[]
presets
);
Parameters
Parameter
Description
type
A valid default
PresetType
.
presets
An ordered list of
DefaultPreset
.
Returns
bool
Returns true if the list was set ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0d63515d56b2 | unity_docs | scripting | Show me a Unity C# example demonstrating `Search.ISearchList`. | ISearchList
interface in
UnityEditor.Search
Description
A search list represents a collection of search results that is filled.
```csharp
public static IEnumerable<SearchItem> YieldResults()
{
ISearchList results = SearchService.Request("*.cs");
foreach (var result in results)
yield return result;
}
```
Prope... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_797f9174bd6b | unity_docs | scripting | Show me a Unity C# example demonstrating `Rendering.SplashScreen.StopBehavior.FadeOut`. | SplashScreen.StopBehavior.FadeOut
Description
Jumps to the final stage of the Splash Screen and performs a fade from the background to the game.
```csharp
using System.Collections;
using UnityEngine;
using UnityEngine.Rendering;// This example shows how the Splash Screen can be canceled early via the user pressing ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8fc2627f29c5 | unity_docs | rendering | What is `TextureImporter.GetAutomaticFormat` in Unity? Explain its purpose and usage. | TextureImporter.GetAutomaticFormat
Declaration
public
TextureImporterFormat
GetAutomaticFormat
(string
platform
);
Parameters
Parameter
Description
platform
Accepts the following platform strings;
Standalone
,
Web
,
iPhone
,
Android
,
Windows Store Apps
, and
tvOS
.
Returns
TextureImporterFormat
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_fd2afd01d472 | unity_docs | physics | Explain 'Profiler modules introduction' in Unity. | Collect specific performance data about your application with Profiler modules.
The top area of the
Profiler window
contains Profiler modules that profile specific areas of your application. When you profile your application, Unity displays the data related to each module in corresponding charts.
The Profiler includes
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a7c42a904662 | unity_docs | animation | What is `ModelImporter.removeConstantScaleCurves` in Unity? Explain its purpose and usage. | ModelImporter.removeConstantScaleCurves
public bool
removeConstantScaleCurves
;
Description
Removes constant animation curves with values identical to the object initial scale value.
The FBX transform stack includes transform pivots that can be used to offset rotation and scaling transformations. When importing... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_524be928831c | unity_docs | scripting | What is `Unity.IO.LowLevel.Unsafe.AsyncReadManager.OpenFileAsync` in Unity? Explain its purpose and usage. | AsyncReadManager.OpenFileAsync
Declaration
public static
Unity.IO.LowLevel.Unsafe.FileHandle
OpenFileAsync
(string
fileName
);
Parameters
Parameter
Description
fileName
The path to the file to be opened.
Returns
FileHandle
The FileHandle of the file being opened. Use the FileHandle to check the status ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3cd9e751373f | unity_docs | rendering | What is `Rendering.ShadowDrawingSettings.objectsFilter` in Unity? Explain its purpose and usage. | ShadowDrawingSettings.objectsFilter
public
ShadowObjectsFilter
objectsFilter
;
Description
Specifies the filter Unity applies to GameObjects that it renders in the shadow pass.
Additional resources:
ShadowObjectsFilter
enum. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_656e1c6cd0f2 | unity_docs | math | Show me a Unity C# example demonstrating `Unity.Collections.LowLevel.Unsafe.UnsafeUtility.SizeOf`. | single instance of a provided type. This includes any padding necessary for proper memory alignment, which ensures efficient data access and hardware compliance.
Use this method when manually allocating memory or interfacing with lower-level systems in Unity. It is essential for tasks that require precise control over ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6790cb5b0e67 | unity_docs | scripting | What is `Build.Reporting.StrippingInfo` in Unity? Explain its purpose and usage. | StrippingInfo
class in
UnityEditor.Build.Reporting
/
Inherits from:
ScriptableObject
Implements interfaces:
ISerializationCallbackReceiver
Description
The StrippingInfo object contains information about which native code modules in the engine are still present in the build, and the reasons why they are still pr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a3245666b69a | unity_docs | editor | What is `Selection.transforms` in Unity? Explain its purpose and usage. | Selection.transforms
public static Transform[]
transforms
;
Description
Returns the top level selection, excluding Prefabs.
This is the most common selection type when working with Scene objects.
```csharp
using UnityEngine;
using UnityEditor;class LookAtMainCamera : ScriptableObject
{
[MenuItem("Example/Sele... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b9e175c4e2b1 | unity_docs | editor | In Unity's 'Set up multiple scenes for occlusion culling', what is 'Loading one Scene at a time' and how does it work? | If you load one Scene at a time with
LoadSceneMode.Single
, you must bake the occlusion culling data for each Scene separately, like this:
In the Unity Editor, open a single Scene that you want to bake occlusion culling data for.
Bake the data for the Scene. Unity generates the data and saves it as
Assets/[Scene name]/... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f26b837abf66 | unity_docs | audio | In Unity's 'Audio Echo Effect', what is 'Properties' and how does it work? | Property:
Function:
Delay
Echo delay in ms. 10 to 5000. Default = 500.
Decay
Echo decay per delay. 0 to 100%. 100% = No decay, 0% = total decay (ie simple 1 line delay). Default = 50%.
Max channels
Maximum number of supported channels from 0 to 16 (default = 0).
Drymix
Volume of original signal to pass to output. 0 to ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9a5f66b417ad | unity_docs | rendering | What is `ChangeAssetObjectPropertiesEventArgs` in Unity? Explain its purpose and usage. | 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_man_ce37397c9669 | unity_docs | xr | In Unity's 'Debug on Android devices', what is 'USB debugging' and how does it work? | Unity supports USB debugging for Android devices. To use USB debugging, enable developer options on your device. To do this, refer to Android’s
Configure developer options
documentation.
Use a USB cable to connect the device to your computer. If you are developing on a Windows computer, you might need to install a devi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bb6015302381 | unity_docs | physics | What is `ArticulationJacobian` in Unity? Explain its purpose and usage. | ArticulationJacobian
struct in
UnityEngine
/
Implemented in:
UnityEngine.PhysicsModule
Description
The floating point dense Jacobian matrix of the articulation body hierarchy.
Jacobian matrix is important concept used in robotics and inverse kinematics.
Multiplication with the Jacobian matrix maps the reduced ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_d6271776bbae | unity_docs | rendering | In Unity's 'Global Illumination Profiler module reference', what is 'Chart categories' and how does it work? | The Global Illumination Profiler module’s chart tracks the time the global illumination subsystem spent on all worker threads. The timings are divided into the following categories:
Chart Description Light Probe
The time spent updating
Light Probes
.
Setup
The time spent in the setup stage.
Environment
The time spent p... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5c3ebb876c82 | unity_docs | editor | What are the parameters of `VersionControl.Provider.GetLatestIsValid` in Unity? | Description The task tests the given asset list and returns true if Provider.GetLatest is valid operation for one or more assets. ```csharp
using System.Collections.Generic;
using UnityEditor;
using UnityEditor.VersionControl;
using UnityEngine;public class EditorScript : MonoBehaviour
{
[MenuItem("Version Control/... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0294ca431eda | unity_docs | physics | What is `Rigidbody2D.attachedColliderCount` in Unity? Explain its purpose and usage. | Rigidbody2D.attachedColliderCount
public int
attachedColliderCount
;
Description
Returns the number of
Collider2D
attached to this
Rigidbody2D
.
Additional resources:
Rigidbody2D.GetAttachedColliders
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_db3cbb5adf76 | unity_docs | rendering | What is `Material.GetFloat` in Unity? Explain its purpose and usage. | Material.GetFloat
Declaration
public float
GetFloat
(string
name
);
Declaration
public float
GetFloat
(int
nameID
);
Parameters
Parameter
Description
nameID
The name ID of the property retrieved by
Shader.PropertyToID
.
name
The name of the property.
Description
Get a named float value.
Additiona... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4bcdf7ff535f | unity_docs | scripting | What is `Object.operator_Object` in Unity? Explain its purpose and usage. | Object.bool
Description
Does the object exist?
The three examples below give the same result.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// check if there is a rigidbody attached to this transform
void Start()
{
if (GetComponent<Rigidbody>() == true)
{
Debug.Log("Rigidbody attached t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_47d2c1d1450e | unity_docs | animation | Show me a Unity C# example demonstrating `Playables.PlayableExtensions`. | PlayableExtensions
class in
UnityEngine.Playables
/
Implemented in:
UnityEngine.CoreModule
Description
Extensions for all the types that implements
IPlayable
.
Extension methods are static methods that can be called as if they were instance methods on the extended type.
```csharp
using UnityEngine;
using Unit... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b66216f1f430 | unity_docs | math | What is `HandleUtility.FindNearestVertex` in Unity? Explain its purpose and usage. | HandleUtility.FindNearestVertex
Declaration
public static bool
FindNearestVertex
(
Vector2
guiPoint
,
out
Vector3
vertex
);
Declaration
public static bool
FindNearestVertex
(
Vector2
guiPoint
,
Transform[]
objectsToSearch
,
out
Vector3
vertex
);
Declaration
public static bool
FindNearestVertex
(
V... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_437e17878529 | unity_docs | ui | In Unity's 'Runtime UI event system and input handling', what is 'Set up input handling with the Input Manager' and how does it work? | To set up input handling with Input Manager, go to
Edit
>
Project Settings
>
Input Manager
.
You can configure the Horizontal and Vertical axes to influence how NavigationMoveEvents are generated in UI Toolkit. You can also modify the Submit and Cancel actions to generate NavigationSubmitEvent and NavigationCancelEvent... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6fc06af3725f | unity_docs | editor | What is `Profiling.HierarchyFrameDataView.GetItemColumnDataAsDouble` in Unity? Explain its purpose and usage. | HierarchyFrameDataView.GetItemColumnDataAsDouble
Declaration
public double
GetItemColumnDataAsDouble
(int
id
,
int
column
);
Parameters
Parameter
Description
id
Hierarchy item identifier.
column
Column identifier.
Returns
double
Value of the correspnding column as double.
Description
Returns doubl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d6eadf1e57c5 | unity_docs | editor | What are the parameters of `iOS.Xcode.PBXProject.GetRealPathsOfAllFiles` in Unity? | Returns IReadOnlyList<string> Returns paths of all project files that use relative location. Description Return a list of all known files. ```csharp
using UnityEngine;
using UnityEditor;
using System.IO;
using UnityEditor.Callbacks;
using UnityEditor.iOS.Xcode;
using System.Linq;public class Sample_GetRealPathsOfAllFil... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a85ffdd523d4 | unity_docs | scripting | In Unity's 'Install Unity Accelerator with Docker Hub', what is 'Configure security and TLS' and how does it work? | To configure TLS settings, ensure the cert.pem and key.pem is in the /agent path specified and then include a CERT_HOSTNAME like the following:
```
$ docker run --rm -ti -v "${PWD}/agent:/agent" -e 'CERT_HOSTNAME=myhostname.com' -e unity/accelerator:latest
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_66c46a2b8bd1 | unity_docs | rendering | What is `Graphics.DrawProceduralIndirectNow` in Unity? Explain its purpose and usage. | Graphics.DrawProceduralIndirectNow
Declaration
public static void
DrawProceduralIndirectNow
(
MeshTopology
topology
,
ComputeBuffer
bufferWithArgs
,
int
argsOffset
);
Declaration
public static void
DrawProceduralIndirectNow
(
MeshTopology
topology
,
GraphicsBuffer
bufferWithArgs
,
int
argsOffset
);
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_52d21d6f452f | unity_docs | performance | What is `ClosestPointCommand.ScheduleBatch` in Unity? Explain its purpose and usage. | ClosestPointCommand.ScheduleBatch
Declaration
public static
Unity.Jobs.JobHandle
ScheduleBatch
(NativeArray<ClosestPointCommand>
commands
,
NativeArray<Vector3>
results
,
int
minCommandsPerJob
,
Unity.Jobs.JobHandle
dependsOn
);
Parameters
Parameter
Description
commands
A NativeArray of the ClosestPoi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4af0170fe200 | unity_docs | animation | What is `Animator.bodyPosition` in Unity? Explain its purpose and usage. | Animator.bodyPosition
public
Vector3
bodyPosition
;
Description
The position of the body center of mass.
The position is in worldspace. You should only set this value from within an
OnAnimatorIK()
function call. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e9a49fcf3acd | unity_docs | editor | What is `iOS.Xcode.PBXProject.ContainsFileByRealPath` in Unity? Explain its purpose and usage. | PBXProject.ContainsFileByRealPath
Declaration
public bool
ContainsFileByRealPath
(string
path
);
Declaration
public bool
ContainsFileByRealPath
(string
path
,
iOS.Xcode.PBXSourceTree
sourceTree
);
Parameters
Parameter
Description
path
The physical path of the file.
sourceTree
The source tree path t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_9fcb1ff2f523 | github | scripting | Write a Unity Editor script for Style Selector | ```csharp
using UnityEditor;
using UnityEngine.UIElements;
namespace AssetStoreTools.Utility
{
internal static class StyleSelector
{
private static StyleSheet GetStylesheet(string stylesheetPath)
{
return AssetDatabase.LoadAssetAtPath<StyleSheet>(stylesheetPath);
}
... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_b7174df5c5ba | unity_docs | animation | What is `ModelImporterClipAnimation.keepOriginalOrientation` in Unity? Explain its purpose and usage. | ModelImporterClipAnimation.keepOriginalOrientation
public bool
keepOriginalOrientation
;
Description
If true, uses the root rotation from the source animation without modification. If false, Unity derives and applies root rotation based on the clip's import settings. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9ddb7ef786d3 | unity_docs | editor | What is `LightProbeGroup.probePositions` in Unity? Explain its purpose and usage. | LightProbeGroup.probePositions
public Vector3[]
probePositions
;
Description
Editor only function to access and modify probe positions.
Probe positions are specified in local space relative to the parent object.
At runtime this function will return an empty Vector3 array and setting it will have no effect.
``... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1415f5acfb5d | unity_docs | rendering | What is `Camera.FocalLengthToFieldOfView` in Unity? Explain its purpose and usage. | Camera.FocalLengthToFieldOfView
Declaration
public static float
FocalLengthToFieldOfView
(float
focalLength
,
float
sensorSize
);
Parameters
Parameter
Description
focalLength
Focal length in millimeters.
sensorSize
Sensor size in millimeters. Use the sensor height to get the vertical field of view. Use t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e4210bb5c10d | unity_docs | editor | What is `SettingsProviderAttribute` in Unity? Explain its purpose and usage. | SettingsProviderAttribute
class in
UnityEditor
Description
Attribute used to register a new
SettingsProvider
. Use this attribute to decorate a function that returns an instance of a
SettingsProvider
. If the function returns null, no SettingsProvider appears in the Settings window.
```csharp
using System.IO;
u... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_7ddb93dd10e7 | github | scripting | Write a Unity C# MonoBehaviour script called A Pooled Behaviour | ```csharp
using UnityEngine;
namespace Gilzoide.PrefabPool
{
public abstract class APooledBehaviour : MonoBehaviour, IPooledObject
{
public PoolHandle PoolHandle { get; set; }
public virtual void OnGetFromPool() {}
public virtual void OnReleaseToPool() {}
}
}
``` | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_man_186b7998afa4 | unity_docs | rendering | In Unity's 'Import and configure plug-ins', what is 'Plug-in default settings' and how does it work? | Unity automatically applies platform-specific default settings to the plug-in if the plug-in’s path within the Assets folder matches a platform-specific pattern. If the path doesn’t match any pattern, Unity applies the Editor platform default settings to the plug-in.
The following table shows the path patterns Unity re... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_08a6bf72d74b | unity_docs | scripting | Explain 'Deep linking on Android' in Unity. | Deep links are hyperlinks outside of your application that take a user to a specific location within the application rather than a website. When a user clicks a deep link, the application opens from the designated location, such as a specific scene in a Unity application. For more information about deep links and how t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_972c428d0c2b | github | scripting | Write a Unity C# audio script for Random Audio | ```csharp
using UnityEngine;
using System.Collections;
public class RandomAudio : MonoBehaviour {
public AudioClip[] audioClips;
public float rate = 1f;
public float chance = 1f;
protected float min = 0f;
protected float max = 100f;
void Start() {
InvokeRepeating("PlaySound", rate... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_61f0c0a0641a | unity_docs | xr | What is `UserAuthorization.Microphone` in Unity? Explain its purpose and usage. | UserAuthorization.Microphone
Description
Request permission to use any audio input sources attached to the device.
Access to microphones is required especially for the following features:
Communication between players or users in the application
Voice commands - especially useful for accessibility
Voice-based g... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dbba342470e7 | unity_docs | scripting | What is `UIElements.ColumnSortingMode` in Unity? Explain its purpose and usage. | ColumnSortingMode
enumeration
Description
Defines the sorting mode of a
MultiColumnListView
or
MultiColumnTreeView
.
Properties
Property
Description
None
Sorting is disabled.
Default
The default Unity sorting will be used. Define how to compare items in a column with Column.comparison.
Custom
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0045dda80724 | unity_docs | rendering | Show me a Unity C# example demonstrating `Graphics.DrawTexture`. | null is passed, a default material with the Internal-GUITexture.shader is used.
pass
If -1 (default), draws all passes in the material. Otherwise, draws given pass only.
Description
Draw a texture in screen coordinates.
If you want to draw a texture from inside of OnGUI code, you should only do that from
EventTyp... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b68e542010aa | unity_docs | rendering | Explain 'Lighting data' in Unity. | Resources for how Unity stores lighting data and visibility data for lightmapping,
Light Probes
, and
Reflection Probes
.
Page Description Introduction to lighting data
Understand how Unity stores lighting data and visibility data for lightmapping, Light Probes, and Reflection Probes.
Lighting Data Assets
Learn about t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7bc1f2cbf0de | unity_docs | ui | What is `GUI.BringWindowToBack` in Unity? Explain its purpose and usage. | GUI.BringWindowToBack
Declaration
public static void
BringWindowToBack
(int
windowID
);
Parameters
Parameter
Description
windowID
The identifier used when you created the window in the
Window
call.
Description
Bring a specific window to back of the floating windows.
```csharp
// Draws 2 overlapped windo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_35b089c56a7d | unity_docs | scripting | What is `RenderSettings.flareStrength` in Unity? Explain its purpose and usage. | RenderSettings.flareStrength
public static float
flareStrength
;
Description
The intensity of all flares in the Scene.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
RenderSettings.flareStrength = 0.2f;
}
}
```
Additional resources:
LensFlare component
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bfd911640458 | unity_docs | editor | What is `iOS.Xcode.PBXProject.GetEntitlementFilePathForTarget` in Unity? Explain its purpose and usage. | PBXProject.GetEntitlementFilePathForTarget
Declaration
public string
GetEntitlementFilePathForTarget
(string
targetGuid
);
Parameters
Parameter
Description
targetGuid
The GUID of the target, such as the one returned by
TargetGuidByName
.
Returns
string
The relative path to the entitlement file or
null
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_357961d51062 | unity_docs | physics | What is `TerrainTools.IOnPaint.raycastHit` in Unity? Explain its purpose and usage. | IOnPaint.raycastHit
public
RaycastHit
raycastHit
;
Description
Read only. The raycast result for the current mouse position. This is valid when hitValidTerrain is true.
Additional resources:
IOnPaint.hitValidTerrain
and
RaycastHit
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_36b05d7a8703 | github | scripting | Write a Unity Editor script for Reference Finder | ```csharp
// Copyright 2020 The Tilt Brush Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicabl... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_1a132b58111d | unity_docs | math | What is `Rendering.BatchCullingOutputDrawCommands.proceduralIndirectDrawCommands` in Unity? Explain its purpose and usage. | BatchCullingOutputDrawCommands.proceduralIndirectDrawCommands
public BatchDrawCommandProceduralIndirect*
proceduralIndirectDrawCommands
;
Description
The array that contains procedural indirect draw commands to render as the result of the OnPerformCulling call.
This can contain as many procedural indirect comma... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_934c4b67e7f2 | unity_docs | scripting | What are the parameters of `ParticleSystem.Burst.ctor` in Unity? | Description Construct a new Burst with a time and count. Additional resources: ParticleSystem.emissionModule.SetBursts, ParticleSystem.emissionModule.GetBursts. ```csharp
using UnityEngine;
using System.Collections;// Create a looping Particle System.
// At 0, 1 and 2 secs the number of particles in each loop
// are ch... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8265bbcc46cf | unity_docs | rendering | What is `PlayerSettings.GetDefaultShaderChunkCount` in Unity? Explain its purpose and usage. | PlayerSettings.GetDefaultShaderChunkCount
Declaration
public static int
GetDefaultShaderChunkCount
();
Description
Gets the default limit on the number of shader variant chunks Unity loads and keeps in memory.
Additional resources:
PlayerSettings.SetDefaultShaderChunkCount
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1104a540ecb2 | unity_docs | rendering | Show me a Unity C# example demonstrating `Build.IPreprocessShaders.OnProcessShader`. | ShaderKeyword
with the name of the keyword.
Implements the
OnProcessShader
callback function and iterates over the
data
list, which contains every variant in the shader.
Uses
data.shaderKeywordSet.IsEnabled()
to check if each variant uses the keyword.
Uses
data.removeAt()
to strip a shader variant if it con... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4d2d57f00d11 | unity_docs | rendering | What is `MeshDeformation.GPUBatched` in Unity? Explain its purpose and usage. | MeshDeformation.GPUBatched
Description
Enables Unity using compute shaders to process mesh deformations on the GPU, and combining multiple meshes and blendshapes into batches.
If you enable this property, Unity uses batching and reordering to combine meshes and blendshapes into fewer dispatch calls to the GPU.
Ba... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_09886d72a37d | unity_docs | scripting | What is `Experimental.GraphView.StackNode.RemoveElement` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
StackNode.RemoveElement
Declaration
public void
RemoveElement
(
Experimental.GraphView.GraphElement
element
);
Parameters
Parameter
Description
element
The GraphElement to remove.
Description
Removes the specified Grap... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e99eb652af40 | unity_docs | rendering | Show me a Unity C# example demonstrating `Search.SearchActionsProviderAttribute`. | SearchActionsProviderAttribute
class in
UnityEditor.Search
Description
Attribute used to declare a static method that defines new actions for specific search providers.
```csharp
using System.Collections.Generic;
using UnityEditor;
using UnityEditor.Search;
using UnityEngine;
using UnityEngine.Rendering;
public ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_fc9ed6456df4 | unity_docs | animation | Explain 'Performance and optimization' in Unity. | This page contains some tips to help you obtain the best performance in Unity, covering the
animation system and run-time optimizations
.
Note:
For tips on modeling your character in a 3d application for best performance in Unity, see
Modeling characters for optimal performance
.
## Controllers
The Animator doesn’t s... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9c050e0afb14 | unity_docs | rendering | What is `Rendering.AsyncGPUReadbackRequest.forcePlayerLoopUpdate` in Unity? Explain its purpose and usage. | AsyncGPUReadbackRequest.forcePlayerLoopUpdate
public bool
forcePlayerLoopUpdate
;
Description
In the Editor, defines whether the Player loop is updated while the GPU request is in flight.
Defaults value: true.
If true, forces the Player loop to be updated until the GPU request is fulfilled. This guarantees that... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_318473ad7cca | unity_docs | animation | What is `ModelImporterAnimationCompression` in Unity? Explain its purpose and usage. | ModelImporterAnimationCompression
enumeration
Description
Animation compression options for
ModelImporter
.
Compressing animations saves space in the built game, but more compression
introduces more artifacts in the animations.
Additional resources:
ModelImporter.animationCompression
.
Properties
Property
Des... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b440d312c5b9 | unity_docs | scripting | What is `Progress.SetPriority` in Unity? Explain its purpose and usage. | Progress.SetPriority
Declaration
public static void
SetPriority
(int
id
,
int
priority
);
Declaration
public static void
SetPriority
(int
id
,
Progress.Priority
priority
);
Parameters
Parameter
Description
id
The progress indicator's unique ID.
priority
The priority.
Description
Sets a progress ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e75b9b876b09 | unity_docs | scripting | What is `WSA.Application.RunningOnAppThread` in Unity? Explain its purpose and usage. | Application.RunningOnAppThread
Declaration
public static bool
RunningOnAppThread
();
Description
Returns true if you're running on application thread.
More information on UI and application threads can be found
here
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_54ba373bc72b | unity_docs | scripting | What is `Scripting.GarbageCollector` in Unity? Explain its purpose and usage. | GarbageCollector
class in
UnityEngine.Scripting
/
Implemented in:
UnityEngine.CoreModule
Description
API to control the garbage collector on the Mono and IL2CPP scripting backends.
See
GarbageCollector.GCMode
for how to change the global garbage collector operation mode.
Static Properties
Property
Descript... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_78e6de7f3cb2 | unity_docs | scripting | Show me a Unity C# example demonstrating `ParticleSystem.NoiseModule.remapEnabled`. | ParticleSystem.NoiseModule.remapEnabled
public bool
remapEnabled
;
Description
Enable remapping of the final noise values, allowing for noise values to be translated into different values.
```csharp
using UnityEngine;
using System.Collections;[RequireComponent(typeof(ParticleSystem))]
public class ExampleClass... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_510b7271d8e0 | unity_docs | scripting | What is `Logger.IsLogTypeAllowed` in Unity? Explain its purpose and usage. | Logger.IsLogTypeAllowed
Declaration
public bool
IsLogTypeAllowed
(
LogType
logType
);
Parameters
Parameter
Description
logType
The type of the log message.
Returns
bool
Retrun true in case logs of LogType will be logged otherwise returns false.
Description
Check logging is enabled based on the LogTy... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_84fb37c95df4_doc_3 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | The to use for the sample processor.
Signature:
```csharp
public ProcessorExampleMode processorExampleMode
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_man_2cac4f7bab89 | unity_docs | scripting | In Unity's 'Analyzer scope and diagnostics', what is 'Report analyzer diagnostics' and how does it work? | To view information such as the total execution time of your analyzers and source generators or the relative execution times of each analyzer or source generator, go to
Edit
>
Preferences
(macOS:
Unity
>
Settings
) >
Diagnostic Switches
and enable
EnableDomainReloadTimings
. When enabled, the information is displayed i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9af2489c447d | unity_docs | rendering | Show me a Unity C# example demonstrating `Rendering.LocalKeyword.isOverridable`. | s, the scope in the source file overrides the scope in the dependencies. Dependencies comprise all Shaders that are included via the
Fallback command
, and Passes that are included via the
UsePass command
.
This example iterates over the local shader keywords in the local keyword space for a material. It determines w... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_afb2e9eea42a | unity_docs | rendering | What is `Lightmapping.GetLightingSettingsForScene` in Unity? Explain its purpose and usage. | Lightmapping.GetLightingSettingsForScene
Declaration
public static
LightingSettings
GetLightingSettingsForScene
(
SceneManagement.Scene
scene
);
Parameters
Parameter
Description
scene
The
Scene
object.
Returns
LightingSettings
The
LightingSettings
object if
Scene.isLoaded
is
true
. Otherwise re... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_673dcd69e4aa | unity_docs | rendering | Explain 'Reflective Bumped Diffuse' 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_b48190d05af7 | unity_docs | rendering | What is `Device.SystemInfo.supportsShadows` in Unity? Explain its purpose and usage. | SystemInfo.supportsShadows
public static bool
supportsShadows
;
Description
This has the same functionality as
SystemInfo.supportsShadows
and also mimics platform-specific behavior in the Unity Editor. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1b38352986ef | unity_docs | scripting | What is `Progress.Item.description` in Unity? Explain its purpose and usage. | Progress.Item.description
public string
description
;
Description
Returns the progress indicator's description.
Additional resources:
Progress.GetDescription
,
Progress.Item.Report
,
Progress.Item.SetDescription
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a4ca61ec87ea | unity_docs | scripting | Show me a Unity code example for 'Handle Game Controller input'. | g stick is mapped to extended profile controllers. See
Input mapping
for the KeyCodes and Axes that correspond to specific controller buttons.
## Example: Set up joystick button A for the Jump action
Go to
Edit
>
Project Settings
.
Select the
Input Manager
category.
Open the Jump action.
Set
Positive Button to joysti... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ac9aa60da708 | unity_docs | editor | What are the parameters of `Search.SearchExpression.CreateItem` in Unity? | Returns SearchItem Returns a new SearchItem. Description Create a new SearchItem from a value with an optional label. ```csharp
[Description("Returns asset paths corresponding to a list of instance ids")]
[SearchExpressionEvaluator("IdsToPaths", SearchExpressionEvaluationHints.ThreadNotSupported, SearchExpressionType.I... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cb5e0bc28f89 | unity_docs | audio | What is `AudioSettings.outputSampleRate` in Unity? Explain its purpose and usage. | AudioSettings.outputSampleRate
public static int
outputSampleRate
;
Description
Get the mixer's current output rate.
As of version 5.0 setting the sample rate from scripts is no longer supported. This has to be set in the Audio section of the project settings instead. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_24111a2232c6 | github | scripting | Write a Unity C# script called Score | ```csharp
using System.Collections;
using DG.Tweening;
using UnityEngine;
public class Score : ScoreScreenType<Score>
{
public int PlayerScore{
get{
return mInternalPoints;
}
}
private int mInternalPoints = 0;
public void AddPoints(int points)
{
mInternalPoints += points;
SetScoreT... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_d0fa34056c36 | unity_docs | scripting | What is `UIElements.LayerField.ctor` in Unity? Explain its purpose and usage. | LayerField Constructor
Declaration
public
LayerField
(string
label
);
Parameters
Parameter
Description
label
The text to use as a label for the field.
Description
Initializes and returns an instance of LayerField.
Declaration
public
LayerField
();
Description
Initializes and returns an instance o... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bb7ecc551273 | unity_docs | scripting | What is `ArticulationBody.immovable` in Unity? Explain its purpose and usage. | ArticulationBody.immovable
public bool
immovable
;
Description
Allows you to specify that this body is not movable.
You should only set this on the root body of the articulation. For example, the base of a robotic hand. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_35a63e4bd7d3 | unity_docs | rendering | In Unity's 'Create samples for packages', what is 'Include your samples in the manifest' and how does it work? | Add a JSON array called samples to the
package.json
file. For each sample, add a JSON object containing at least the displayName and the path to the samples folder:
Key Description displayName
The name of the sample as it appears in the package details in the Package Manager window.
description
A brief description of w... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8bf0a843298f | unity_docs | audio | What is `Video.VideoPlayer.GetDirectAudioVolume` in Unity? Explain its purpose and usage. | VideoPlayer.GetDirectAudioVolume
Declaration
public float
GetDirectAudioVolume
(ushort
trackIndex
);
Parameters
Parameter
Description
trackIndex
Track index for which the volume is queried.
Returns
float
Volume, between 0 and 1.
Description
Return the direct-output volume for specified track. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4b8908ae0a45 | unity_docs | performance | In Unity's 'Frame timing manager introduction', what is 'Platform support' and how does it work? | FrameTimingManager
is supported on the following platforms and graphics APIs:
Platform Graphics Supported Android OpenGL ES Yes Android Vulkan Yes iOS Metal Yes Linux OpenGL Partial:
GPU Frame Time
measurement is unsupported.
Linux Vulkan Yes macOS Metal Yes tvOS Metal Yes WebGL WebGL
Partial:
GPU Frame Time
measuremen... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_df455f39f5f4 | unity_docs | editor | Show me a Unity C# example demonstrating `PlayerSettings.defaultScreenHeight`. | PlayerSettings.defaultScreenHeight
public static int
defaultScreenHeight
;
Description
Default vertical dimension of stand-alone player window.
Custom player settings.
```csharp
using UnityEngine;
using UnityEditor;
// Simple Script that saves and loads custom
// Stand-alone/Web player screen settings among
/... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_956fd7af8896 | github | scripting | Write a Unity C# script called Sprite Color Setter | ```csharp
using UnityEngine;
namespace LeakyAbstraction.ReactiveScriptables
{
[ExecuteInEditMode]
[RequireComponent(typeof(SpriteRenderer))]
public class SpriteColorSetter : ColorSetterBase<SpriteRenderer>
{
protected override void SetColor(Color color)
=> _component.color = color;... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_32ea6853f605 | unity_docs | rendering | What is `Rendering.ShaderTagId` in Unity? Explain its purpose and usage. | ShaderTagId
struct in
UnityEngine.Rendering
/
Implemented in:
UnityEngine.CoreModule
Description
Shader tag ids are used to refer to various names in shaders.
Additional resources:
DrawingSettings
, ScriptableRenderContext.DrawRenderers.
Static Properties
Property
Description
none
Describes a shader tag id... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_8087e5e4324e | github | scripting | Write a Unity Editor script for CSV Example Editor | ```csharp
using System.IO;
using UnityEditor;
using UnityEngine;
using GameUtil.Config.Editor;
namespace GameUtil.Config.Example.Editor
{
[CustomEditor(typeof(CSVExample)), CanEditMultipleObjects]
public class CSVExampleEditor : UnityEditor.Editor
{
public override void OnInspectorGUI()
{
... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
gh_3d13c89661d4_doc_1 | github | scripting | What does `OrderedDictionary` do in this Unity script? Explain its purpose and signature. | Initializes a new instance of the class.Data type of a key.Data type of a value.
Signature:
```csharp
protected OrderedDictionary(Type keyType, Type valueType)
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_man_52f01a3b7936 | unity_docs | networking | In Unity's 'Collect performance data on a target platform', what is 'Connect to an application via IP address' and how does it work? | To connect via IP address:
Open the Profiler window (menu:
Window > Analysis > Profiler
)
Select the Target Selection dropdown menu, next to the Record icon (⏺)
Select
<Enter IP>
in the dropdown.
Enter the IP address in the dialog that appears, and optionally the port of the player you want to connect to. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_758e9f1da416 | unity_docs | rendering | Explain 'Global cache' in Unity. | When the Unity Package Manager fetches
UPM packages
, it stores the package contents and metadata in a global cache. This makes reusing and sharing packages more efficient, and allows you to install and update stored packages even when offline.
Note
: Storing packages in the global cache applies to UPM packages fetched... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4d8aae2f61ff | unity_docs | scripting | What are the parameters of `Networking.UnityWebRequestTexture.GetTexture` in Unity? | Returns UnityWebRequest A UnityWebRequest properly configured to download an image and convert it to a Texture . Description Create a UnityWebRequest intended to download an image via HTTP GET and create a Texture based on the retrieved data. Use UnityWebRequestTexture.GetTexture to retrieve a Texture file from a remot... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_831e789326ed | unity_docs | editor | Give me an overview of the `StandaloneBuildSubtarget` class in Unity. | StandaloneBuildSubtarget
enumeration
Description
Options for the desktop platform subtarget type.
Additional resources:
EditorUserBuildSettings.standaloneBuildSubtarget
.
Properties
Property
Description
Player
Uses the default desktop player build settings.
Server
Uses a player build optimized to run as a he... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_adf113e13b9d | unity_docs | editor | Show me a Unity C# example demonstrating `Callbacks.RunAfterClassAttribute.ctor`. | s a dependency graph and uses topological sorting to ensure that all dependencies are run in sequence based on their dependencies. If callbacks dependencies are not present in the project then the instruction will be ignored during the generation of the dependency graph.
Note:
Defining callback dependencies is current... | 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.