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_1d43162cec13 | unity_docs | performance | What is `Unity.Profiling.LowLevel.Unsafe.ProfilerCategoryDescription.Name` in Unity? Explain its purpose and usage. | ProfilerCategoryDescription.Name
public string
Name
;
Description
Gets Profiler category name as string.
Note:
Accessing this property allocates a new managed string on every access, which contributes to GC allocated memory. As such, this might slow down the performance of your application. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ff75680cd4c0 | unity_docs | scripting | Show me a Unity C# example demonstrating `AudioType.IT`. | AudioType.IT
Description
The audio file you want to stream has the Impulse Tracker (IT) audio file format.
Use this enumeration value to ensure the format type of the audio file has the IT audio file format. Use this audio type for audio files with the extension .it. If the audio file has a different format, Unity ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c2dfa619d36e | unity_docs | scripting | What are the parameters of `Color.ctor` in Unity? | Description Constructs a new Color with given r,g,b,a components. ```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
Color newColor = new Color(0.3f, 0.4f, 0.6f, 0.3f);
}
}
``` Declaration public Color (float r ,
float g ,
float b ); Parameters Parameter Description r ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_149e5c97258e | unity_docs | scripting | Show me a Unity C# example demonstrating `JointDrive.positionSpring`. | JointDrive.positionSpring
public float
positionSpring
;
Description
Strength of a rubber-band pull toward the defined direction. Only used if
mode
includes Position.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Create a JointDrive, configure it and assign the JointDrive to
// the zD... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a181a21bbc7f | unity_docs | scripting | Give me an overview of the `IHVImageFormatImporter` class in Unity. | IHVImageFormatImporter
class in
UnityEditor
/
Inherits from:
AssetImporter
Description
Use IHVImageFormatImporter to modify
Texture2D
import settings for Textures in IHV (Independent Hardware Vendor) formats such as .DDS and .PVR from Editor scripts.
Properties
Property
Description
filterMode
Filtering mod... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_eeae6189ee81 | unity_docs | editor | Explain 'Packages' in Unity. | View lists of packages based on their state.
Topic Description Released packages
,
Pre-release packages
View the lists of supported packages for this version of the Unity Editor, and learn about the criteria a package must meet to be in these states.
Core packages
View the list of packages that are bound to this versio... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_44070f6c7990 | unity_docs | audio | What is `Audio.AudioPlayableBinding` in Unity? Explain its purpose and usage. | AudioPlayableBinding
class in
UnityEngine.Audio
/
Implemented in:
UnityEngine.AudioModule
Description
A
PlayableBinding
that contains information representing an
AudioPlayableOutput
.
Static Methods
Method
Description
Create
Creates a PlayableBinding that contains information representing an AudioPlayable... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3d104ecc6aef | unity_docs | editor | What is `SceneManagement.EditorSceneManager.sceneManagerSetupRestored` in Unity? Explain its purpose and usage. | EditorSceneManager.sceneManagerSetupRestored
Description
This can be useful to get notified when the SceneManager's scenes are replaced with a set of new scenes from calls to
RestoreSceneManagerSetup
.
Use the
scenes
argument to check what scenes has just been opened.
Additional resources:
SceneManagerSetupResto... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_44863acade36_doc_6 | github | scripting | What does `TryGetScreenPoint` do in this Unity script? Explain its purpose and signature. | Try to get the projected screen-space position of the resultant transformed position.Try to get the on-screen position of this Positioner.Note that the screen point value obtained via this method may change every frame.The screen point of this Positioner. The value is only valid if the returned result is true.True if t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_de405a5ac42a | unity_docs | physics | What is `SimulationMode2D` in Unity? Explain its purpose and usage. | SimulationMode2D
enumeration
Description
A selection of modes that control when Unity executes the 2D physics simulation.
Additional resources:
Physics2D.simulationMode
.
Properties
Property
Description
FixedUpdate
Use this enumeration to specify to Unity that it should execute the physics simulation immediat... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_8e7d2d3a961a | unity_docs | scripting | Explain 'Analyze the import process' in Unity. | Unity has tools which you can use to monitor how long Unity took to import the assets in your project and check the consistency of the import process.
Topic Description Check the consistency of an importer
Verify that the import process produces consistent results for the same asset.
Import Activity window
Collect data... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1aeb49e7299a | unity_docs | networking | What is `Networking.MultipartFormDataSection.sectionName` in Unity? Explain its purpose and usage. | MultipartFormDataSection.sectionName
public string
sectionName
;
Returns
string
The section's name, or
null
.
Description
Returns the name of this section, if any.
Additional resources:
IMultipartFormSection.sectionName
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_de953dfd0eb0 | unity_docs | rendering | What is `Experimental.GlobalIllumination.LightMode.Realtime` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
LightMode.Realtime
Description
The light is real-time. No contribution will be baked in lightmaps or light probes. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fd25693db509 | unity_docs | editor | What is `SceneManagement.PrefabStageUtility.GetPrefabStage` in Unity? Explain its purpose and usage. | PrefabStageUtility.GetPrefabStage
Declaration
public static
SceneManagement.PrefabStage
GetPrefabStage
(
GameObject
gameObject
);
Parameters
Parameter
Description
gameObject
The GameObject to check.
Returns
PrefabStage
The containing Prefab stage.
Description
Get the Prefab stage which contains th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_8d88f932d757_doc_1 | github | scripting | What does `Update` do in this Unity script? Explain its purpose and signature. | The method is a main part of the system and it's called every frame
Signature:
```csharp
public void Update(float deltaTime)
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_b6dcb07d70a5 | unity_docs | rendering | What is `Rendering.BatchDrawCommandProceduralIndirect.splitVisibilityMask` in Unity? Explain its purpose and usage. | BatchDrawCommandProceduralIndirect.splitVisibilityMask
public ushort
splitVisibilityMask
;
Description
Indicates which splits that the draw command is visible in.
Unity uses this when it culls shadow map splits simultaneously. A split refers to a shadow cascade in a directional light shadow map or a cube map f... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b861303e0106 | unity_docs | rendering | What is `StreamingController.streamingMipmapBias` in Unity? Explain its purpose and usage. | StreamingController.streamingMipmapBias
public float
streamingMipmapBias
;
Description
Offset applied to the mipmap level chosen by the texture streaming system for any textures visible from this camera. This Offset can take either a positive or negative value.
When texture streaming is active, Unity loads mipm... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_a864a33c1a81 | github | scripting | Write a Unity Editor script for Singleton Attribute | ```csharp
using System;
using System.Collections.Generic;
using System.IO;
using UnityEditor;
using UnityEngine;
/// <summary>
/// Tag singletons automatically adding it to the Windows->Singletons menu list
/// which allows you to select it in the Inspector.
///
/// Note, this generates a class automatically after ... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_324a7bb80a54 | unity_docs | rendering | What is `UIElements.Button.imageUSSClassName` in Unity? Explain its purpose and usage. | Button.imageUSSClassName
public static string
imageUSSClassName
;
Description
The USS class name of the image element that will be used to display the icon texture.
Unity adds this USS class to an instance of the Image element that will be used to display the
Button.iconImage
property value. Any styling ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6d55b2bad8d1 | unity_docs | rendering | What is `Rendering.BuiltinShaderType.DeferredReflections` in Unity? Explain its purpose and usage. | BuiltinShaderType.DeferredReflections
Description
Shader used for deferred reflection probes.
When using deferred shading,
reflection probes
are rendered in "deferred" way by default.
All deferred objects in the Scene get per-pixel reflection probes that are calculated using this shader.
When setting deferred ref... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_88d2e5a9af4d | unity_docs | scripting | Show me a Unity C# example demonstrating `WindZoneMode.Spherical`. | WindZoneMode.Spherical
Description
Wind zone only has an effect inside the radius, and has a falloff from the center towards the edge.
```csharp
// Creates a Spherical Wind Zone.
using UnityEngine;public class ExampleScript : MonoBehaviour
{
void Start()
{
var wind = gameObject.AddComponent<WindZone>();
wind.mo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_18ec50ba7734 | unity_docs | input | In Unity's 'Input in Web', what is 'Gamepad and Joystick support' and how does it work? | Web supports the following inputs for gamepads:
Input InputSystem Web also supports joysticks for browsers that support the
HTML5 Gamepad API
.
Some browsers allow access to input devices only after the user interacts with the device while the application is in focus. This type of security measure prevents the user fro... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_78bd5ef71cb0 | github | scripting | Write a Unity C# XR/VR script for Display Device Info From Action ISX | ```csharp
using UnityEngine.UI;
using UnityEngine.InputSystem;
namespace UnityEngine.XR.OpenXR.Samples.ControllerSample
{
public class DisplayDeviceInfoFromActionISX : MonoBehaviour
{
[SerializeField]
InputActionProperty m_Property;
public InputActionProperty property { get => m_Propert... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_man_6a77670b147e | unity_docs | rendering | Explain 'Bake data in multiple scenes' in Unity. | You can reduce the time taken to bake data and the size of the generated data if you bake your data into multiple
scenes
.
## Bake lightmaps with multiple scenes
To predetermine the brightness of surfaces in your scenes, you can bake
lightmaps
. There are two ways to bake lightmaps for multiple scenes at once:
To aut... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1f3bb75b86af | unity_docs | scripting | What is `Search.QueryEngineFilterAttribute.useRegularExpressionToken` in Unity? Explain its purpose and usage. | QueryEngineFilterAttribute.useRegularExpressionToken
public bool
useRegularExpressionToken
;
Description
Indicates if the filter uses a regular expression token or not.
This flag is set to true when a filter is created with a regular expression. See
QueryEngineFilterAttribute
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a4481e892535 | unity_docs | rendering | What is `Rendering.PerObjectData.OcclusionProbeProxyVolume` in Unity? Explain its purpose and usage. | PerObjectData.OcclusionProbeProxyVolume
Description
Setup per-object occlusion probe proxy volume data (occlusion in alpha channels).
Additional resources:
DrawingSettings
, ScriptableRenderContext.DrawRenderers. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9b6139a0de92 | unity_docs | scripting | What are the parameters of `Handles.Slider` in Unity? | Returns Vector3 The new value modified by the user's interaction with the handle. If the user has not moved the handle, it will return the position value passed into the function. Description Make a 3D slider that moves along one axis. This method will draw a 3D-draggable handle on the screen. The handle is constrained... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c5f7c681a1ec | unity_docs | rendering | What is `Texture.GetNativeTexturePtr` in Unity? Explain its purpose and usage. | Texture.GetNativeTexturePtr
Declaration
public IntPtr
GetNativeTexturePtr
();
Returns
IntPtr
Pointer to an underlying graphics API Texture resource.
Description
Retrieve a native (underlying graphics API) pointer to the Texture resource.
Use this function to retrieve a pointer/handle corresponding to a pa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b9569823705a | unity_docs | scripting | In Unity's 'EnumField', what is 'Create an EnumField' and how does it work? | You can create an EnumField with UI Builder, UXML, and C#.
Assume you have the following enumeration:
```
enum ColorOptions
{
Red,
Green,
Blue,
Yellow
}
```
The following C# example creates an EnumField with the ColorOptions enumeration and sets the default value to
Red
:
```
EnumField myElement = new EnumField("La... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_137423007001 | unity_docs | scripting | What is `SystemInfo.GetTiledRenderTargetStorageSize` in Unity? Explain its purpose and usage. | SystemInfo.GetTiledRenderTargetStorageSize
Declaration
public static int
GetTiledRenderTargetStorageSize
(
Experimental.Rendering.GraphicsFormat
format
,
int
sampleCount
);
Parameters
Parameter
Description
format
The
GraphicsFormat
format to look up.
sampleCount
The number of MSAA samples.
Returns
in... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_91da78e2e782 | unity_docs | scripting | Show me a Unity C# example demonstrating `ParticleSystem.ExternalForcesModule.influenceMask`. | ParticleSystem.ExternalForcesModule.influenceMask
public
LayerMask
influenceMask
;
Description
Particle System Force Field Components with a matching Layer affect this Particle System.
Additional resources:
LayerMask
.
```csharp
using UnityEngine;[RequireComponent(typeof(ParticleSystem))]
public class Exam... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6ac174159c52 | unity_docs | rendering | What is `Rendering.AmbientMode.Skybox` in Unity? Explain its purpose and usage. | AmbientMode.Skybox
Description
Skybox-based or custom ambient lighting.
Ambient color is calculated from the current skybox, or set manually.
Additional resources:
RenderSettings.ambientMode
,
RenderSettings.ambientProbe
,
Lighting Window
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_209d1f0d507a | unity_docs | rendering | What is `Experimental.Rendering.GraphicsStateCollection.ctor` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsStateCollection Constructor
Declaration
public
GraphicsStateCollection
();
Declaration
public
GraphicsStateCollection
(string
filePath
);
Parameters
Parameter
Description
filePath
Path to GraphicsTextureCollec... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_19a3b9807c6b | unity_docs | scripting | What is `Search.QueryBlock` in Unity? Explain its purpose and usage. | QueryBlock
class in
UnityEditor.Search
/
Inherits from:
UIElements.VisualElement
Description
A query block is the visual element of a query node in a query.
In example,
shader=lit
will be a query filter block with
QueryBlock.name
equal to
shader
,
QueryBlock.value
equal to
lit
and the
QueryBlock.op
e... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_782342616a9b | unity_docs | rendering | What is `Rendering.ScriptableCullingParameters.cullingMatrix` in Unity? Explain its purpose and usage. | ScriptableCullingParameters.cullingMatrix
public
Matrix4x4
cullingMatrix
;
Description
The matrix for the culling operation.
Unity copies this value from the
Camera.cullingMatrix
property of the Camera from which you obtained the CullingParameters object. You can override this value before performing the cu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_57f048a15f02 | unity_docs | editor | Show me a Unity C# example demonstrating `SearchService.AdvancedObjectSelectorAttribute`. | l over the UI, so you can create your own search window if you wish to. There are two methods that need to be registered: the object selector handler and the validator. The handler opens the object selector, and the validator validates that the object selector can be opened for the current selection
context
. Here is ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3ac90d2ecae1 | unity_docs | rendering | What is `Camera.transparencySortMode` in Unity? Explain its purpose and usage. | Camera.transparencySortMode
public
TransparencySortMode
transparencySortMode
;
Description
Transparent object sorting mode.
By default, perspective Cameras sort objects based on distance from Camera position
to the object center; and orthographic Cameras sort based on distance along the view direction.
If yo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_27d4dca22915 | unity_docs | scripting | What is `ParticleSystem.CollisionModule.SetPlane` in Unity? Explain its purpose and usage. | ParticleSystem.CollisionModule.SetPlane
Declaration
public void
SetPlane
(int
index
,
Transform
transform
);
Parameters
Parameter
Description
index
The plane entry to set.
transform
The plane to collide particles against.
Description
Set a collision plane to use with this Particle System.
If the ind... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_3f884535fcf0 | github | scripting | Write a Unity C# script called Screen Overlay | ```csharp
using System;
using UnityEngine;
namespace UnityStandardAssets.ImageEffects
{
[ExecuteInEditMode]
[RequireComponent (typeof(Camera))]
[AddComponentMenu ("Image Effects/Other/Screen Overlay")]
public class ScreenOverlay : PostEffectsBase
{
public enum OverlayBlendMode
{
... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_dfa9cccb438c | unity_docs | scripting | Show me a Unity C# example demonstrating `Object.FindObjectsOfType`. | solete, use
Object.FindObjectsByType
instead. This replacement allows you to specify whether to sort the resulting array. FindObjectsOfType() always sorts by InstanceID, so calling FindObjectsByType(FindObjectsSortMode.InstanceID) produces identical results. If you specify not to sort the array, the function runs sig... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4d33b9479e5e | unity_docs | scripting | What is `AI.NavMesh.RemoveNavMeshData` in Unity? Explain its purpose and usage. | NavMesh.RemoveNavMeshData
Declaration
public static void
RemoveNavMeshData
(
AI.NavMeshDataInstance
handle
);
Parameters
Parameter
Description
handle
The instance of a NavMesh to remove.
Description
Removes the specified
NavMeshDataInstance
from the game, making it unavailable for agents and queries.
U... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b0d9f2441f43 | unity_docs | editor | Show me a Unity C# example demonstrating `Unity.Profiling.Editor.ProfilerModuleMetadataAttribute`. | ProfilerModuleMetadataAttribute
class in
Unity.Profiling.Editor
Description
Provides metadata related to a
ProfilerModule
, such as its name and icon path.
You must attribute a
ProfilerModule
derived type with
ProfilerModuleMetadataAttribute
for Unity to display it in the Profiler window.
```csharp
using Sy... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9d2a25d00637 | unity_docs | editor | Show me a Unity C# example demonstrating `iOS.Xcode.PBXProject.GetShellScriptBuildPhaseForTarget`. | matching phase or null if it does not exist.
Description
Returns the GUID of matching copy shell script build phase for the given target.
If the target already has a shell script build phase with the same
name
,
shellPath
, and
shellScript
configured for it, the function returns the existing phase. The new pha... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8e6f53580e11 | unity_docs | scripting | What is `SearchService.SceneSearchContext.engineScope` in Unity? Explain its purpose and usage. | SceneSearchContext.engineScope
public
SearchService.SearchEngineScope
engineScope
;
Description
An enum that identifies the scope of the current search. This property is automatically set to SearchService.Scene.EngineScope. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ef656a63d873 | unity_docs | rendering | Show me a Unity C# example demonstrating `ImageConversion.EncodeToJPG`. | ion
Encodes this texture into JPG format.
This function returns a byte array which is the JPG file data. You can store the encoded data as a file or send it over the network without further processing.
This function does not work on any compressed format.
Texture.isReadable
must be
true
.
The encoded JPG data wil... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c14924867c65 | unity_docs | rendering | Explain 'Reflections shader example in the Built-In Render Pipeline' in Unity. | When a Skybox is used in the scene as a reflection source (see
Lighting window
),
then essentially a “default”
Reflection Probe
is created, containing the skybox data.
A reflection probe is internally a Cubemap texture; we will extend the world-space normals shader above to look into it.
The code is starting to get a b... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f3a385bce50e | unity_docs | scripting | What is `Playables.INotificationReceiver` in Unity? Explain its purpose and usage. | INotificationReceiver
interface in
UnityEngine.Playables
Description
Implement this interface to create a class that will receives notifications from PlayableOutput.
Public Methods
Method
Description
OnNotify
The method called when a notification is raised. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_658653d267bc | unity_docs | xr | What is `Application.targetFrameRate` in Unity? Explain its purpose and usage. | Application.targetFrameRate
public static int
targetFrameRate
;
Description
Specifies the target frame rate at which Unity tries to render your application.
Accepts an integer > 0, or special value -1 (default).
Desktop
If
QualitySettings.vSyncCount
is set to
0
, then
Application.targetFrameRate
chooses a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bb8b989497c3 | unity_docs | physics | What are the parameters of `Collider.OnCollisionStay` in Unity? | Description OnCollisionStay is called once per frame for every Collider or Rigidbody that touches another Collider or Rigidbody. In contrast to OnTriggerStay, OnCollisionStay is passed the Collision class and not a Collider.
The Collision class contains information about contact points, impact velocity etc.
If you don'... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f0e7d5343327 | unity_docs | editor | What are the parameters of `PluginImporter.GetIcon` in Unity? | Returns Texture2D Returns the custom icon that will be associated with the imported MonoScript . If no custom icon will be associated with the imported MonoScript , returns null. Description Gets the custom icon to associate with a MonoScript at import time. Additional resources: MonoScript.GetClass , Type.FullName, Pl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9b9271edbe0e | unity_docs | ui | Show me a Unity C# example demonstrating `EditorGUILayout.MinMaxSlider`. | erride settings defined by the
style
.
Additional resources:
GUILayout.Width
,
GUILayout.Height
,
GUILayout.MinWidth
,
GUILayout.MaxWidth
,
GUILayout.MinHeight
,
GUILayout.MaxHeight
,
GUILayout.ExpandWidth
,
GUILayout.ExpandHeight
.
Description
Make a special slider the user can use to specify a range betwe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_93d14cf64816 | unity_docs | animation | Show me a Unity C# example demonstrating `AssetPostprocessor.OnPreprocessAnimation`. | AssetPostprocessor.OnPreprocessAnimation()
Description
Add this function to a subclass to get a notification just before animation from a model (.fbx, .mb file etc.) is imported.
This lets you control the import settings through code.
```csharp
using UnityEngine;
using UnityEditor;public class Example : AssetPostp... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0092a989c8ff | unity_docs | ui | What is `Experimental.GraphView.ContentDragger` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
ContentDragger
class in
UnityEditor.Experimental.GraphView
/
Inherits from:
UIElements.MouseManipulator
Description
Manipulator that allows mouse-dragging of one or more elements.
Properties
Property
Description
clampToPa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_89fecb034038 | unity_docs | editor | What is `PluginImporter.GetExcludeEditorFromAnyPlatform` in Unity? Explain its purpose and usage. | PluginImporter.GetExcludeEditorFromAnyPlatform
Declaration
public bool
GetExcludeEditorFromAnyPlatform
();
Description
Is
Editor
excluded when
Any Platform
is set to true.
See also
PluginImporter.SetExcludeFromAnyPlatform
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_39cb82438bbe | unity_docs | physics | What is `Physics.SphereCastNonAlloc` in Unity? Explain its purpose and usage. | Physics.SphereCastNonAlloc
Declaration
public static int
SphereCastNonAlloc
(
Vector3
origin
,
float
radius
,
Vector3
direction
,
RaycastHit[]
results
,
float
maxDistance
= Mathf.Infinity,
int
layerMask
= DefaultRaycastLayers,
QueryTriggerInteraction
queryTriggerInteraction
= QueryTriggerInteraction.U... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_639f8dd2d5b1 | unity_docs | ui | What is `UIElements.BaseSlider_1.pageSize` in Unity? Explain its purpose and usage. | BaseSlider<T0>.pageSize
public float
pageSize
;
Description
Represents the value that should be applied to the calculated scroll offset while scrolling the slider, such as when clicking within the track or clicking the slider arrows. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b8c3fd7856ba | unity_docs | rendering | Show me a Unity C# example demonstrating `LightTransport.BufferID.Slice`. | ates a BufferSlice that provides a typed view into the buffer starting at the specified offset. This is a convenience method equivalent to constructing a BufferSlice manually.
The offset is measured in elements of type T, not in bytes. This method provides type safety and helps prevent common offset calculation errors.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_47d3847f8ff0 | unity_docs | input | Give me an overview of the `GUI` class in Unity. | GUI
class in
UnityEngine
/
Implemented in:
UnityEngine.IMGUIModule
Description
The GUI class is the interface for Unity's GUI with manual positioning.
Additional resources:
GUI tutorial
.
Static Properties
Property
Description
backgroundColor
Global tinting color for all background elements rendered by the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_15a347101336 | unity_docs | rendering | In Unity's 'Error and loading shaders', what is 'The default error shader' and how does it work? | Unity renders an object with the default error shader when there’s a problem with that object’s material or shader; for example, if no material is assigned, if the shader doesn’t compile, or if the shader isn’t supported.
Unity uses the default error shader in the Unity Editor, and in builds.
The default error shader i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7440b2a56799 | unity_docs | scripting | What is `Accessibility.AccessibilityNode` in Unity? Explain its purpose and usage. | AccessibilityNode
class in
UnityEngine.Accessibility
/
Implemented in:
UnityEngine.AccessibilityModule
Description
An instance of a node in the
AccessibilityHierarchy
, representing an element in the UI that the screen reader
can read, focus, and execute actions on.
Properties
Property
Description
allow... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_22d14d8ee063 | unity_docs | rendering | What is `LightTransport.PostProcessing.RadeonRaysProbePostProcessor.ScaleSphericalHarmonicsL2` in Unity? Explain its purpose and usage. | RadeonRaysProbePostProcessor.ScaleSphericalHarmonicsL2
Declaration
public bool
ScaleSphericalHarmonicsL2
(
LightTransport.IDeviceContext
context
,
BufferSlice<SphericalHarmonicsL2>
shIn
,
BufferSlice<SphericalHarmonicsL2>
shOut
,
int
probeCount
,
float
scale
);
Parameters
Parameter
Description
context
D... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_075ee5d2ba64 | unity_docs | scripting | Show me a Unity C# example demonstrating `Rendering.Watermark.IsVisible`. | Watermark.IsVisible
Declaration
public static bool
IsVisible
();
Returns
bool
True, if the watermark is visible.
Description
Returns
true
if the watermark is visible on-screen. Whether the watermark is visible depends on your build settings and Unity plan.
The following code sample checks if the waterma... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_790d21d0d50c | unity_docs | scripting | Explain 'Create components with scripts' in Unity. | Components add functionality to a
GameObject
. To customize and add to the components in the Editor, you can write your own
scripts
.
To create a component with script, you need to write the script and then attach it to a GameObject. Scripts attached to a GameObject appear in the GameObject’s Inspector window because t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f221fedf94cd | unity_docs | physics | What is `LowLevelPhysics.SphereGeometry.ctor` in Unity? Explain its purpose and usage. | SphereGeometry Constructor
Declaration
public
SphereGeometry
(float
radius
);
Parameters
Parameter
Description
radius
The radius of the sphere.
Description
Create a sphere shape with the provided parameter. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e5c638674826 | unity_docs | scripting | What is `Experimental.Rendering.IScriptableBakedReflectionSystem.Clear` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
IScriptableBakedReflectionSystem.Clear
Declaration
public void
Clear
();
Description
Clear the state of the ScriptableBakedReflectionSystem.
Your implementation of this method must clear the current in-memory state and baked... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_537fd167c9a2 | unity_docs | rendering | Give me an overview of the `RenderParams` class in Unity. | RenderParams
struct in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Rendering parameters used by various rendering functions.
This struct defines common parameters shared across various rendering functions.
Additional resources:
Graphics.RenderMesh
,
Graphics.RenderMeshInstanced
,
Graphic... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2c6f11153dd3 | unity_docs | physics | What are the parameters of `Rigidbody2D.GetContacts` in Unity? | Returns int Returns the number of contacts placed in the contacts array. Description Retrieves all contact points for all of the Collider(s) attached to this Rigidbody. Contacts involving a Collider2D set to be a trigger will never be returned here because trigger Colliders do not have contact points. When retrieving c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d3e9bac09ac6 | unity_docs | animation | What is `Animations.ParentConstraint.locked` in Unity? Explain its purpose and usage. | ParentConstraint.locked
public bool
locked
;
Description
Locks the offsets and position (translation and rotation) at rest.
In Edit mode, unlocks the constraint to update its offsets. In Play mode, the constraint is always locked. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2156290e621d | unity_docs | rendering | What is `LightTransport.IDeviceContext.DestroyEvent` in Unity? Explain its purpose and usage. | IDeviceContext.DestroyEvent
Declaration
public void
DestroyEvent
(
LightTransport.EventID
id
);
Parameters
Parameter
Description
id
ID of the event to destroy.
Description
Destroy the event with the given ID. You should call this to free temporary resources associated with an event. Attempting to use the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_0983dc57611c | github | scripting | Write a Unity C# script called Entity Operations | ```csharp
using UnityEngine;
namespace starikcetin.Joy.Core
{
public static class EntityOperations
{
public static void EnableEntity(Entity entity)
{
if (entity.gameObject.activeSelf == true) return;
entity.gameObject.SetActive(true);
Manager.EntityEnabled(e... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_7935c5442b71 | unity_docs | rendering | What is `ParticleSystem.RotationBySpeedModule.z` in Unity? Explain its purpose and usage. | ParticleSystem.RotationBySpeedModule.z
public
ParticleSystem.MinMaxCurve
z
;
Description
Rotation by speed curve for the z-axis.
Additional resources:
MinMaxCurve
.
```csharp
using UnityEngine;
using System.Collections;[RequireComponent(typeof(ParticleSystem))]
public class ExampleClass : MonoBehaviour
{
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5c6cc6a1f367 | unity_docs | editor | What is `PlayerSettings.Android.resizeableActivity` in Unity? Explain its purpose and usage. | PlayerSettings.Android.resizeableActivity
public static bool
resizeableActivity
;
Description
Indicates whether your Android application is resizable.
By default the Android application is resizable. Disable this option to make the application non-resizable.
Note:
If you enable this option, your application w... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_a431e5038f5d_doc_6 | github | scripting | What does `IsTextureCompressionSet` do in this Unity script? Explain its purpose and signature. | Checks if the current compression is set to a specified value:- Unknown- ETC- ETC2- ASTC- PCRTC- DXTC- BPTCchecked using reflections See source .
Signature:
```csharp
public static bool IsTextureCompressionSet(BuildTargetGroup buildTargetGroup, string label)
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_07cf1d9b9629 | unity_docs | ui | What is `GUILayout.EndVertical` in Unity? Explain its purpose and usage. | GUILayout.EndVertical
Declaration
public static void
EndVertical
();
Description
Close a group started with BeginVertical.
Vertical Layout.
```csharp
using UnityEngine;public class ExampleScript : MonoBehaviour
{
void OnGUI()
{
GUILayout.BeginVertical("box"); GUILayout.Button("I'm the top button");
GUILayo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_4cb1c76734da | github | scripting | Write a Unity C# script called T Click Component | ```csharp
using TinyECS.Interfaces;
using UnityEngine;
/// <summary>
/// This type defines a flag-component, because it doesn't store
/// some internal data
/// </summary>
public struct TClickComponent : IComponent
{
}
/// <summary>
/// This type contains an information about user's input. You can store
/// any typ... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_db1b519f4ee7 | unity_docs | editor | What is `EditorUtility.IsDirty` in Unity? Explain its purpose and usage. | EditorUtility.IsDirty
Declaration
public static bool
IsDirty
(int
instanceID
);
Declaration
public static bool
IsDirty
(
Object
target
);
Parameters
Parameter
Description
instanceID
The object's instance ID.
target
The object.
Returns
bool
True if the object has changed; otherwise false.
Descr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_503e400533c5 | unity_docs | scripting | What are the parameters of `Quaternion.RotateTowards` in Unity? | Returns Quaternion A unit quaternion rotated towards to by an angular step of maxDegreesDelta . Description Rotates a rotation from towards to . The from quaternion is rotated towards to by an angular step of maxDegreesDelta . The rotation will not overshoot the to quaternion.
Negative values of maxDegreesDelta moves a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_93b2bd8e42b4 | unity_docs | input | What is `UIElements.PointerStationaryEvent` in Unity? Explain its purpose and usage. | Method group is Obsolete
PointerStationaryEvent
class in
UnityEngine.UIElements
/
Inherits from:
UIElements.PointerEventBase_1
/
Implemented in:
UnityEngine.UIElementsModule
Obsolete
Not sent by input backend.
Description
This event is sent when a pointer does not change for a set amount of time, determin... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ea58eb773d32 | unity_docs | rendering | What are the parameters of `Texture2D.SetPixels32` in Unity? | Description Sets the pixel colors of an entire mipmap level. This method sets pixel data for the texture in CPU memory. Texture.isReadable must be true , and you must call Apply after SetPixels32 to upload the changed pixels to the GPU. colors must contain the pixels slice by slice starting at the front of the texture.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_73fd3ea0fe15 | unity_docs | ui | Show me a Unity C# example demonstrating `UIElements.UxmlTypeReferenceAttribute`. | TypeReference
attribute to specify the base type that the value should inherit from.
This allows you to provide additional information about the expected type of the value and helps Unity ensure that the
correct type is assigned to the attribute.
The following example creates a custom control and restricts the a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6556e381b1dc | unity_docs | scripting | Give me an overview of the `ColorGamut` class in Unity. | ColorGamut
enumeration
Description
Represents a color gamut.
Properties
Property
Description
sRGB
sRGB color gamut.
Rec709
Rec. 709 color gamut.
Rec2020
Rec. 2020 color gamut.
DisplayP3
Display-P3 color gamut.
HDR10
HDR10 high dynamic range color gamut.
DolbyHDR
DolbyHDR high dynamic range color gamut.
P3... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_23f4d77a5158 | unity_docs | rendering | In Unity's 'Tree Editor concepts', what is 'The Tree Hierarchy view' and how does it work? | To open the
Tree Hierarchy
view, add a Tree GameObject (
GameObject
>
3D Object
>
Tree
).
At the top of the tree’s Inspector is the
Tree Hierarchy
view, which shows the tree
root node
and any branch and leaf groups the tree has. Use the
Tree Hierarchy
view to add and delete branch and leaf groups, to control their prop... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_7edcaa7906ad | unity_docs | rendering | In Unity's 'World building', what is 'Additional resources and examples' and how does it work? | 📖
E-Book
:
Introduction to game level design
⚙️
Sample project
:
Terrain Sample Asset Pack
⚙️
Sample project
:
Unity Terrain - HDRP Demo Scene
⚙️
Sample project
:
Unity Terrain - URP Demo Scene
📺
Video
:
3D modeling with ProBuilder in Unity
📺
Video
:
ProBuilder for grey-boxing in Unity
📺
Video
:
Deep dive into the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_92940c5e2dbf | unity_docs | scripting | What is `AssetBundle.LoadFromStream` in Unity? Explain its purpose and usage. | AssetBundle.LoadFromStream
Declaration
public static
AssetBundle
LoadFromStream
(Stream
stream
);
Declaration
public static
AssetBundle
LoadFromStream
(Stream
stream
,
uint
crc
);
Declaration
public static
AssetBundle
LoadFromStream
(Stream
stream
,
uint
crc
,
uint
managedReadBufferSize
);
Par... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5b69d0ac0072 | unity_docs | audio | What is `AudioConfiguration.sampleRate` in Unity? Explain its purpose and usage. | AudioConfiguration.sampleRate
public int
sampleRate
;
Description
The current sample rate of the audio output device used.
For an example of how to use this property, refer to
AudioSettings.Reset
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2a47c731bc56 | unity_docs | rendering | What are the parameters of `GUILayout.Box` in Unity? | Description Make an auto-layout box. This will make a box that contains static text or images but not other GUI controls. If you want to make a rectangular container for a set of GUI controls, use one of the grouping functions ( BeginHorizontal , BeginVertical , BeginArea , etc...). Boxes in the Game View. ```csharp
us... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a8d10dd978a9 | unity_docs | rendering | What is `CanvasRenderer.onRequestRebuild` in Unity? Explain its purpose and usage. | CanvasRenderer.onRequestRebuild
Description
(Editor Only) Event that gets fired whenever the data in the
CanvasRenderer
gets invalidated and needs to be rebuilt.
For instance, whenever a Texture gets re-imported this event gets fired. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_a5889bb29b1c_doc_34 | github | scripting | What does `GetHashCode` do in this Unity script? Explain its purpose and signature. | Hashes the contents of the brush cell.A hash code of the brush cell.
Signature:
```csharp
public override int GetHashCode()
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_a91e5434fac2 | unity_docs | scripting | What are the parameters of `MonoBehaviour.OnCollisionEnter` in Unity? | Description OnCollisionEnter is called when this collider/rigidbody has begun touching another rigidbody/collider. OnCollisionEnter receives an instance of the Collision class as the collision paramter. This parameter contains information about the collision such as contact points and impact velocity. If you don't use ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_8039087bf69b | github | scripting | Write a Unity Editor script for Android Xml Document | ```csharp
using System.Text;
using System.Xml;
using UnityEngine;
namespace MagicLeap.SetupTool.Editor.Utilities
{
internal class AndroidXmlDocument : XmlDocument
{
private readonly string _path;
protected readonly XmlNamespaceManager _xmlNamespaceManager;
public readonly string AndroidXmlNamespace = "http://... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_f05eee23f9ed | unity_docs | animation | What is `Animations.AnimationStream.AsHuman` in Unity? Explain its purpose and usage. | AnimationStream.AsHuman
Declaration
public
Animations.AnimationHumanStream
AsHuman
();
Returns
AnimationHumanStream
Returns the same stream, but as an
AnimationHumanStream
.
Description
Gets the same stream, but as an
AnimationHumanStream
.
This function throws an
InvalidOperationException
is the av... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_9f9202ed40a1 | github | scripting | Write a Unity Editor script for Editor Script Generator Window | ```csharp
using CodeGeneration;
using System;
using System.Linq;
using UnityEditor;
using UnityEngine;
namespace FieldSearch.EditorScriptGeneration.Editor
{
/// <summary>
/// Window for <see cref="EditorScriptGenerator"/>
/// </summary>
public partial class EditorScriptGeneratorWindow : EditorWindow
... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_942ec5798bad | unity_docs | scripting | What is `SerializedProperty.hasVisibleChildren` in Unity? Explain its purpose and usage. | SerializedProperty.hasVisibleChildren
public bool
hasVisibleChildren
;
Description
Does it have visible child properties? (Read Only)
Additional resources:
hasChildren
,
NextVisible
,
HideInInspector
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_566ee8826961 | unity_docs | physics | What is `Rigidbody.collisionDetectionMode` in Unity? Explain its purpose and usage. | Rigidbody.collisionDetectionMode
public
CollisionDetectionMode
collisionDetectionMode
;
Description
The Rigidbody's collision detection mode.
Use this to set up a Rigidbody for continuous collision detection. You can use continuous collision detection to
prevent fast moving objects from passing through othe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c5b83d5edaba | unity_docs | editor | Show me a Unity C# example demonstrating `Search.SearchProvider.trackSelection`. | SearchProvider.trackSelection
public Action<SearchItem,SearchContext>
trackSelection
;
Description
Called when the selection changed and can be tracked.
```csharp
[SearchItemProvider]
internal static SearchProvider CreateProvider()
{
return new SearchProvider("example_tree", "Trees")
{
filterId = "tree:",
p... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ccf42606dd4f | unity_docs | xr | What is `Networking.UnityWebRequest.downloadedBytes` in Unity? Explain its purpose and usage. | UnityWebRequest.downloadedBytes
public ulong
downloadedBytes
;
Description
Returns the number of bytes of body data the system has downloaded from the remote server. (Read Only)
If the UnityWebRequest has no download handler, this method will always return zero. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_a05805a1c916 | github | scripting | Write a Unity C# script called Raycast Pointer Event Dara | ```csharp
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
namespace VrBlocks
{
// This class is used to store an additional selection ray along with the pointer event data.
// This selection ray is used by the VrBlocks.Raycaster to test UI elements.
public class Rayc... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_3dd11fa9bb3d | unity_docs | scripting | What is `SceneTemplate.SceneTemplateAsset.templatePipeline` in Unity? Explain its purpose and usage. | SceneTemplateAsset.templatePipeline
public
MonoScript
templatePipeline
;
Description
A script that derives from ISceneTemplatePipeline. It allows you to execute custom code when a template is instantiated. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7bb8b65bc08e | unity_docs | editor | What is `ApplicationInstallMode` in Unity? Explain its purpose and usage. | ApplicationInstallMode
enumeration
Description
Application installation mode (Read Only).
Properties
Property
Description
Unknown
Application install mode unknown.
Store
Application installed via online store.
DeveloperBuild
Application installed via developer build.
Adhoc
Application installed via ad hoc di... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9ed1c2ded473 | unity_docs | scripting | What is `ScreenOrientation.LandscapeRight` in Unity? Explain its purpose and usage. | ScreenOrientation.LandscapeRight
Description
Landscape orientation, clockwise from the portrait orientation.
Available on iOS and on Android 2.3+. On older Androids falls
back to LandscapeLeft.
Additional resources:
Screen.orientation
. | 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.