id stringlengths 15 22 | source stringclasses 2
values | category stringclasses 12
values | instruction stringlengths 22 180 | response stringlengths 100 46.1k | system stringclasses 5
values |
|---|---|---|---|---|---|
local_man_5300b671791a | unity_docs | rendering | In Unity's 'Introduction to scenes', what is 'Creating a new scene' and how does it work? | To create a new scene from the New Scene dialog, select a template from the templates list, and click
Create
. For a detailed description of creating a scene this way, see
Creating a new scene from the New Scene dialog
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0dd8803128a7 | unity_docs | scripting | What is `Build.Content.ObjectIdentifier.ToObject` in Unity? Explain its purpose and usage. | ObjectIdentifier.ToObject
Declaration
public static Object
ToObject
(
Build.Content.ObjectIdentifier
objectId
);
Description
Tries to find, load, and return the Object that represents this ObjectIdentifier.
Returns null if the Object cannot be found or loaded. This can happen if the asset that contains the Ob... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_fd8a0bf49209 | github | scripting | Write a Unity C# XR/VR script for Omnideck Vector3 | ```csharp
/*
Copyright 2017-2023 MSE Omnifinity AB
The code below is a simple example of moving a transform based on
position data arriving from Omnideck.
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 ... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_man_df6f01502426 | unity_docs | physics | In Unity's 'Optimize performance of moving elements at runtime', what is 'Flow of updating and rendering a visual element' and how does it work? | The following diagram illustrates the flow of updating and rendering a
visual element
at runtime:
For an example that optimizes rendering and updates for frequently changing elements at runtime, refer to
Move elements at runtime
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_14d19ec20873_doc_2 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Scans the current scene for MonoBehaviours that derive from the given type and declares them in thedependency context.the context into which the classes should be declared.if true, the scanned component will be declared with their name as qualifier.If false, they will be declared without a qualifier.
Signature:
```csh... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_b39f1a2fff24 | unity_docs | rendering | What is `TextureImporterSingleChannelComponent` in Unity? Explain its purpose and usage. | TextureImporterSingleChannelComponent
enumeration
Description
Selects which Color/Alpha channel
Single Channel Textures
uses.
Properties
Property
Description
Alpha
Use the Alpha channel.
Red
Use the red Color channel. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_8695d67cec79 | github | scripting | Write a Unity C# script called Test Behaviour1 | ```csharp
using UnityEngine;
namespace E
{
[ExecuteInEditMode, AutoInstantiate(0)]
public class TestBehaviour1 : GlobalBehaviour
{
protected override bool IsActive => true;
protected override void OnAwake()
{
BehaviourManager.CreateInstance<TestBehaviour2>();
... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_18bb3d7c0551 | unity_docs | rendering | What is `SpeedTree.Importer.MaterialSettingsCallbackAttribute` in Unity? Explain its purpose and usage. | MaterialSettingsCallbackAttribute
class in
UnityEditor.SpeedTree.Importer
Description
This attribute is used as a callback to set SRP specific properties from the importer.
Properties
Property
Description
MethodVersion
The version of the method.
Constructors
Constructor
Description
MaterialSettingsCallb... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_03b5f0fe1ec7 | unity_docs | scripting | What is `ModelImporter.normalSmoothingAngle` in Unity? Explain its purpose and usage. | ModelImporter.normalSmoothingAngle
public float
normalSmoothingAngle
;
Description
Smoothing angle (in degrees) for calculating normals.
How sharp the edge has to be to be turned into a hard edge when calculating normals.
This setting is only used when
importNormals
is set to
Calculate
.
Additional resources... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_d12b87b7c3c9 | github | scripting | Write a Unity Editor script for Script Node Parser | ```csharp
using System.Linq;
using Esprima.Ast;
using UnityEngine;
namespace Baxter.ClusterScriptExtensions.Editor.ScriptParser
{
public static class ScriptNodeParser
{
/// <summary>
/// フィールドの初期化を行っている式の見た目からフィールドの型を推定する。
/// </summary>
/// <param name="node"></param>
/... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c87fafd96c81 | unity_docs | math | What is `AndroidJNI.FromDoubleArray` in Unity? Explain its purpose and usage. | AndroidJNI.FromDoubleArray
Declaration
public static double[]
FromDoubleArray
(IntPtr
array
);
Description
Converts a Java array of
double
to a managed array of System.Double.
Additional resources:
AndroidJNI.GetDoubleArrayElement
,
AndroidJNI.GetArrayLength
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3c9061fe8cfd | unity_docs | scripting | What is `ScriptableWizard.OnWizardCreate` in Unity? Explain its purpose and usage. | ScriptableWizard.OnWizardCreate()
Description
This is called when the user clicks on the Create button.
Here you perform any final creation/modification actions. After OnCreateWizard is called, the wizard is automatically closed.
Additional resources:
ScriptableWizard.DisplayWizard
ScriptableWizard window for sel... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1e2b0bbc58aa | unity_docs | rendering | What is `Windows.WebCam.CameraParameters.cameraResolutionWidth` in Unity? Explain its purpose and usage. | CameraParameters.cameraResolutionWidth
public int
cameraResolutionWidth
;
Description
A valid width resolution for use with the web camera.
This value must be set to a valid width resolution supported by the intended capture mode.
For example, when using this with PhotoCapture, you will want to query
PhotoCapt... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_50f7fad6fc4e | unity_docs | scripting | What is `PlayerSettings.WSAImageType.UWPSquare44x44Logo` in Unity? Explain its purpose and usage. | PlayerSettings.WSAImageType.UWPSquare44x44Logo
Description
The image to display as the application icon within the start menu, taskbar, and task manager.
The Universal Windows Platform asset file name for this is Square44x44Logo.png. For more information about application icons and logos, see
Microsoft's document... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_22d43d62df56 | unity_docs | scripting | What is `HorizontalWrapMode` in Unity? Explain its purpose and usage. | HorizontalWrapMode
enumeration
Description
Wrapping modes for text that reaches the horizontal boundary.
Properties
Property
Description
Wrap
Text will word-wrap when reaching the horizontal boundary.
Overflow
Text can exceed the horizontal boundary. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c1fb70928b28 | unity_docs | editor | What is `Compilation.AssemblyDefinitionException` in Unity? Explain its purpose and usage. | AssemblyDefinitionException
class in
UnityEditor.Compilation
Description
An exception throw for Assembly Definition Files errors.
Properties
Property
Description
filePaths
File paths of the assembly definition files that caused the exception.
Constructors
Constructor
Description
AssemblyDefinitionException... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c549656f4425 | unity_docs | scripting | Show me a Unity C# example demonstrating `Time.deltaTime`. | ximum value for
deltaTime
is defined by
Time.maximumDeltaTime
.
deltaTime
inside
MonoBehaviour.OnGUI
is not reliable, because Unity might call it multiple times per frame.
The following example rotates a GameObject around its z axis at a constant speed.
See
Time and Frame Rate Management
in the User Manual for ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2b10465f8e2a | unity_docs | editor | What is `AndroidAutoRotationBehavior` in Unity? Explain its purpose and usage. | AndroidAutoRotationBehavior
enumeration
Description
Options to control the application window orientation when
Default orientation
is set to
Auto rotation
.
```csharp
using UnityEditor;
using UnityEngine;
using UnityEditor;
using UnityEditor.Build;public class AutoRotationBehaviorSample : MonoBehaviour
{
[Menu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_90dc807cf6dd | unity_docs | editor | Show me a Unity C# example demonstrating `FileUtil.MoveFileOrDirectory`. | tion
public static void
MoveFileOrDirectory
(string
source
,
string
dest
);
Description
Moves a file or a directory from a given path to another path.
This function's path is relative to the project root folder but it can also accept absolute paths.
All file separators should be forward ones "/".
Make sure to i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_374e2ca41512 | unity_docs | scripting | What is `Unity.IO.LowLevel.Unsafe.FileHandle.IsValid` in Unity? Explain its purpose and usage. | FileHandle.IsValid
Declaration
public bool
IsValid
();
Returns
bool
True, if this FileHandle represents an open file; otherwise, false.
Description
Reports whether this FileHandle instance is valid.
A FileHandle is invalid if the open operation failed or the FileHandle has been closed. (Creating a new Fil... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_610b4f9347c9 | unity_docs | rendering | What are the parameters of `GUILayout.Window` in Unity? | Returns Rect The rectangle the window is at. This can be in a different position and have a different size than the one you passed in. Description Make a popup window that layouts its contents automatically. Windows float above normal GUI controls, feature click-to-focus and can optionally be dragged around by the end ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2ce3c70a0764 | unity_docs | scripting | What is `UIElements.TextElement.emojiFallbackSupport` in Unity? Explain its purpose and usage. | TextElement.emojiFallbackSupport
public bool
emojiFallbackSupport
;
Description
Specifies the order in which the system should look for Emoji characters when rendering text.
If this setting is enabled, the global Emoji Fallback list will be searched first for characters defined as
Emoji in the Unicode 14.0 st... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cffb35e8ecc4 | unity_docs | rendering | What is `ModelImporterMaterialName.BasedOnModelNameAndMaterialName` in Unity? Explain its purpose and usage. | ModelImporterMaterialName.BasedOnModelNameAndMaterialName
Description
Use material names in the form
<modelFileName>-<materialName>.mat
.
Material names will be accepted in the form
<modelFileName>-<materialName>.mat
when searching for existing materials or creating new ones.
Additional resources:
ModelImporter... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_f522b91ce703_doc_23 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Represents an object which can receive twelve arguments as part of its initialization process.Base interface of .
Signature:
```csharp
public interface ITwelveArguments
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_bd6f7e3280f0 | unity_docs | scripting | What is `RuntimeInitializeLoadType.SubsystemRegistration` in Unity? Explain its purpose and usage. | RuntimeInitializeLoadType.SubsystemRegistration
Description
Callback invoked when starting up the runtime. Called before the first scene is loaded.
For more info on ordering see
RuntimeInitializeOnLoadMethodAttribute
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_33a9e03a694c | unity_docs | physics | In Unity's 'Search settings and preferences', what is 'Query syntax' and how does it work? | Provider token:
set:
Query example: Searches for all light-related settings and preferences.
```
set: light
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_af8d44606c5b | unity_docs | rendering | What is `ReceiveGI` in Unity? Explain its purpose and usage. | ReceiveGI
enumeration
Description
This property only takes effect if you enable a global illumination setting such as
Baked Global Illumination
or
Enlighten Realtime Global Illumination
for the target Scene. When you enable ReceiveGI, you can determine whether illumination data at runtime will come from
Light ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8fe48a714d06 | unity_docs | math | What is `AI.NavMeshData.sourceBounds` in Unity? Explain its purpose and usage. | NavMeshData.sourceBounds
public
Bounds
sourceBounds
;
Description
Returns the bounding volume of the input geometry used to build this NavMesh (Read Only).
If the NavMesh data has not been built, the bounds will have zero values. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b9595bf2ed5c | unity_docs | scripting | What is `PrefabUtility.IsPartOfPrefabThatCanBeAppliedTo` in Unity? Explain its purpose and usage. | PrefabUtility.IsPartOfPrefabThatCanBeAppliedTo
Declaration
public static bool
IsPartOfPrefabThatCanBeAppliedTo
(
Object
componentOrGameObject
);
Parameters
Parameter
Description
componentOrGameObject
The object to check. Must be a component or GameObject.
Returns
bool
True if the object is part of a Pre... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a372456fda4c | unity_docs | rendering | What is `Shader.SetGlobalTexture` in Unity? Explain its purpose and usage. | Shader.SetGlobalTexture
Declaration
public static void
SetGlobalTexture
(string
name
,
Texture
value
);
Declaration
public static void
SetGlobalTexture
(int
nameID
,
Texture
value
);
Declaration
public static void
SetGlobalTexture
(string
name
,
RenderTexture
value
,
Rendering.RenderTextureSubE... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_d62776f3c2d0 | unity_docs | rendering | In Unity's 'Create a Profiler module', what is 'Display a custom Profile module in the Profiler window' and how does it work? | When you define your own Profiler module, the Profiler window automatically detects it. To view data in your Profiler module in the Profiler window:
Connect the Profiler to your application. For more information, refer to
Profiling your application
.
Run your application.
You can also run the Profiler when your applica... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4cebf0635533 | unity_docs | scripting | What is `SceneManagement.Scene` in Unity? Explain its purpose and usage. | Scene
struct in
UnityEngine.SceneManagement
/
Implemented in:
UnityEngine.CoreModule
Description
The runtime data structure for a scene.
This object can be used to query information about a scene, and as an input to various scene manipulation functions in
SceneManager
and
EditorSceneManager
. To query the
P... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_882302fbeced | unity_docs | rendering | In Unity's 'Set shadow distance in a scene', what is 'Setting the Shadow Distance' and how does it work? | In the Built-in
Render Pipeline
, set the Shadow Distance property in your Project’s
Quality Settings
.
In the Universal Render Pipeline (URP), set the Shadow Distance property in the
Universal Render Pipeline Asset
.
In the High Definition Render Pipeline (HDRP), set the Shadow Distance property for each
Volume
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_46cdb78c627d | unity_docs | rendering | In Unity's 'Particle System Force Field component reference', what is 'Shape' and how does it work? | Property Function Shape
Select the shape of the area of influence.
Start Range
Set the value for the inner point within the shape where the area of influence begins.
End Range
Set the value for the outer point of the shape where the area of influence ends.
Direction X, Y and Z
Set a linear force to apply to particles a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7ff2f1160206 | unity_docs | rendering | What is `CameraClearFlags.Nothing` in Unity? Explain its purpose and usage. | CameraClearFlags.Nothing
Description
Don't clear anything.
This will leave colors and depth buffer from the previous frame or whatever was displayed before.
Additional resources:
Camera.clearFlags
property,
camera component
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f3de308cb079 | unity_docs | scripting | What is `PenStatus.Eraser` in Unity? Explain its purpose and usage. | PenStatus.Eraser
Description
The pen is in erase mode.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void OnGUI()
{
Event m_Event = Event.current; if (m_Event.type == EventType.MouseDown)
{
if (m_Event.pointerType == PointerType.Pen) //Check if it's a pen event.
{
if (m_Event.penStatus =... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_7f186c6434a4 | github | scripting | Write a Unity C# script called Object Registry | ```csharp
using System;
using System.Collections.Generic;
using UnityEngine;
using GameFramework.Logging;
using UnityObject = UnityEngine.Object;
abstract class ObjectRegistry<T>
where T : UnityObject
{
public delegate void OnAssetRegisteredDelegate(T asset);
public delegate void OnAssetUnregisteredDelega... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
gh_b63c8da21840 | github | scripting | Write a Unity C# audio script for Glass Pour Controller | ```csharp
using UnityEngine;
public class GlassPourController : MonoBehaviour
{
[Header("References")]
[SerializeField] private GlassFiller glassFiller;
[SerializeField] private GlassController glassController;
[SerializeField] private GameObject streamPrefab;
[SerializeField] private ShakeDetectio... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_2b12f735b7f7 | unity_docs | editor | What is `SceneManagement.EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo` in Unity? Explain its purpose and usage. | EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo
Declaration
public static bool
SaveCurrentModifiedScenesIfUserWantsTo
();
Returns
bool
Returns true if the user clicked
Save
or
Don't Save
to indicate that that it is ok to close the open scenes after the dialog closes. Returns false if the user cli... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_078235de6c9b | unity_docs | rendering | Show me a Unity C# example demonstrating `LineRenderer.widthMultiplier`. | LineRenderer.widthMultiplier
public float
widthMultiplier
;
Description
Set an overall multiplier that is applied to the
LineRenderer.widthCurve
to get the final width of the line.
```csharp
using UnityEngine;
using System.Collections;[RequireComponent(typeof(LineRenderer))]
public class ExampleClass : MonoB... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2b9df9799db6 | unity_docs | scripting | Show me a Unity code example for 'Work with blend shapes'. | e Animation window.
## Scripting access
You can also set the blend weights through scripting using functions like GetBlendShapeWeight and
SetBlendShapeWeight
.
To check how many blend shapes a Mesh has, use the blendShapeCount variable.
This code example demonstrates how to blend a default shape into two other blend ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0b2780c01d49 | unity_docs | input | What is `GUILayout.Label` in Unity? Explain its purpose and usage. | GUILayout.Label
Declaration
public static void
Label
(
Texture
image
,
params GUILayoutOption[]
options
);
Declaration
public static void
Label
(string
text
,
params GUILayoutOption[]
options
);
Declaration
public static void
Label
(
GUIContent
content
,
params GUILayoutOption[]
options
);
Declara... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a17a5e31e971 | unity_docs | physics | Show me a Unity C# example demonstrating `Collision.rigidbody`. | Collision.rigidbody
public
Rigidbody
rigidbody
;
Description
The
Rigidbody
we hit (Read Only). This is
null
if the object we hit is a collider with no rigidbody attached.
```csharp
using UnityEngine;public class ExampleScript : MonoBehaviour
{
// Make all rigidbodies we touch fly upwards
void OnCollisio... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5f78bfc85aeb | unity_docs | scripting | What is `Mesh.GetVertexBufferStride` in Unity? Explain its purpose and usage. | Mesh.GetVertexBufferStride
Declaration
public int
GetVertexBufferStride
(int
stream
);
Parameters
Parameter
Description
stream
Vertex data stream index to check for.
Returns
int
Vertex data size in bytes in this stream, or zero if the stream is not present.
Description
Get vertex buffer stream strid... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4ec451bd778b | unity_docs | scripting | What is `Video.VideoClip.GetAudioLanguage` in Unity? Explain its purpose and usage. | VideoClip.GetAudioLanguage
Declaration
public string
GetAudioLanguage
(ushort
audioTrackIdx
);
Parameters
Parameter
Description
audioTrackIdx
Index of the audio track you want to query in the video.
Returns
string
The abbreviated name of the language.
Description
Gets the language of the video clip’s... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ee590424b016 | unity_docs | scripting | Show me a Unity C# example demonstrating `Physics2D.Simulate`. | erministic because of the unpredictable fluctuations in framerate that can arise. To achieve more deterministic physics results, you should pass a fixed step value to Physics2D.Simulate every time you call it.
Additional resources:
Physics2D.simulationMode
and
PhysicsScene2D.Simulate
.
Here is an example of a basic ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5cac4685e81d | unity_docs | rendering | What is `Experimental.GlobalIllumination.LightDataGI.InitNoBake` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
LightDataGI.InitNoBake
Declaration
public void
InitNoBake
(int
lightInstanceID
);
Description
Initialize a light so that the baking backends ignore it. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_65b017777eea | unity_docs | math | What is `Sprite.vertices` in Unity? Explain its purpose and usage. | Sprite.vertices
public Vector2[]
vertices
;
Description
Returns a copy of the array containing Sprite mesh vertex positions.
```csharp
// Obtain the vertices from the script and modify the position of one of them. Use OverrideGeometry() for this.
//Attach this script to a Sprite GameObject
//To see the vertice... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cdb0942c2d02 | unity_docs | editor | What are the parameters of `EditorGUI.FloatField` in Unity? | Returns float The value entered by the user. Description Makes a text field for entering floats. Float Field in an Editor Window. ```csharp
using UnityEngine;
using UnityEditor;public class EditorGUIFloatField : EditorWindow
{
float sizeMultiplier = 1; [MenuItem("Examples/Scale selected Object")]
static void... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fdb2faebc838 | unity_docs | scripting | Show me a Unity C# example demonstrating `ParticleSystem.CollisionModule.lifetimeLoss`. | ParticleSystem.CollisionModule.lifetimeLoss
public
ParticleSystem.MinMaxCurve
lifetimeLoss
;
Description
How much a collision reduces a particle's lifetime.
Additional resources:
ParticleSystem.collision
,
MinMaxCurve
.
```csharp
using UnityEngine;
using System.Collections;[RequireComponent(typeof(Particl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e4904fcbfc79 | unity_docs | scripting | What is `Android.AndroidApplication.unityPlayer` in Unity? Explain its purpose and usage. | AndroidApplication.unityPlayer
public static
AndroidJavaObject
unityPlayer
;
Description
Indicates the Unity bridge Java instance used by an activity or a service.
You can access this property from Unity's main thread which means you can use it in
Start()
,
Awake()
, or in methods with
RuntimeInitializeOnL... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4319a91d059d | unity_docs | ui | What is `EditorWindow.RemoveNotification` in Unity? Explain its purpose and usage. | EditorWindow.RemoveNotification
Declaration
public void
RemoveNotification
();
Description
Stop showing notification message.
Notification message fades away automatically after some time. This function will remove it immediately.
Show a notification in an editor window.
```csharp
// Simple example that shows... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a0ef8089bb5c | unity_docs | scripting | Show me a Unity C# example demonstrating `ParticleSystem.NoiseModule.remapMultiplier`. | ParticleSystem.NoiseModule.remapMultiplier
public float
remapMultiplier
;
Description
Remap multiplier.
Changing this property is more efficient than accessing the entire curve, if you only want to change the overall remap multiplier.
Additional resources:
ParticleSystem.NoiseModule.remap
.
```csharp
using U... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_19d62314e771 | unity_docs | math | Show me a Unity C# example demonstrating `Mathf.Max`. | Mathf.Max
Declaration
public static float
Max
(float
a
,
float
b
);
Declaration
public static float
Max
(params float[]
values
);
Description
Returns the largest of two or more values. When comparing negative values, values closer to zero are considered larger.
```csharp
using UnityEngine;public class S... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1810d39e4f80 | unity_docs | rendering | What is `Material.SetShaderPassEnabled` in Unity? Explain its purpose and usage. | Material.SetShaderPassEnabled
Declaration
public void
SetShaderPassEnabled
(string
passName
,
bool
enabled
);
Parameters
Parameter
Description
passName
Shader pass name (case insensitive).
enabled
Flag indicating whether this Shader pass should be enabled.
Description
Enables or disables a Shader pass ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5128e9d81eff | unity_docs | editor | Show me a Unity C# example demonstrating `EditorGUI.EndChangeCheck`. | therwise false.
Description
Ends a code block and checks for any GUI changes.
Use this in combination with
EditorGUI.BeginChangeCheck
to create a code block that checks if the GUI state changed for just the controls contained in the block.
That is, unlike
GUI.changed
which returns true for
any
changes to ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2f4f8b4eb6e5 | unity_docs | rendering | In Unity's 'Transparent Bumped Diffuse', what is 'Creating Normal maps' and how does it work? | You can import normal maps created outside of Unity, or you can import a regular grayscale image and convert it to a Normal Map from within Unity. (This page refers to a legacy shader which has been superseded by the
Standard Shader
, but you can learn more about how to use
Normal Maps in the Standard Shader
) | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2f8f751dcbff | unity_docs | editor | What is `SceneManagement.SceneCullingMasks.DefaultSceneCullingMask` in Unity? Explain its purpose and usage. | SceneCullingMasks.DefaultSceneCullingMask
public static ulong
DefaultSceneCullingMask
;
Description
Specifies the default culling mask for a Scene. Use the bits from this Scene culling mask for objects that you want to render in both in the Game view and the Scene view.
All normal Scenes start with this culling... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a3bddbe287fb | unity_docs | scripting | What is `IMGUI.Controls.TreeView.RowGUIArgs.GetNumVisibleColumns` in Unity? Explain its purpose and usage. | TreeView.RowGUIArgs.GetNumVisibleColumns
Declaration
public int
GetNumVisibleColumns
();
Description
If using a MultiColumnHeader for the TreeView use this method to get the number of visible columns currently being shown in the MultiColumnHeader.
Additional resources:
TreeView.RowGUIArgs.GetCellRect
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f21e9370dab2 | unity_docs | animation | Explain 'Use curves' in Unity. | A curve is a line graph that shows the response (on the y-axis) to the value of an input (on the x-axis) as that input changes. The Unity Editor uses curves in many components. For more information about using curves, refer to
Edit Animation curves
.
## Save curve presets and create libraries
You can save your curren... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_06c6ee16827a | unity_docs | scripting | What is `Assertions.Assert.IsNotNull` in Unity? Explain its purpose and usage. | Assert.IsNotNull
Declaration
public static void
IsNotNull
(
Object
value
,
string
message
);
Declaration
public static void
IsNotNull
(T
value
);
Declaration
public static void
IsNotNull
(T
value
,
string
message
);
Parameters
Parameter
Description
value
The
Object
or
type
being checked for.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_466b60d6988d | unity_docs | rendering | What are the parameters of `Graphics.DrawTexture` in Unity? | 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 EventType.Repaint events. It's probably better to use GUI.DrawTexture for GUI code. ```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Draws a texture on the scr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6cdb5474b032 | unity_docs | scripting | Give me an overview of the `LocationServiceStatus` class in Unity. | LocationServiceStatus
enumeration
Description
Describes the location service status for a device.
Properties
Property
Description
Stopped
The location service is not running.
Initializing
The location service is initializing.
Running
The location service is running and the application can query for locations.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ce14be93e4d2 | unity_docs | rendering | What is `MaterialProperty.hasMixedValue` in Unity? Explain its purpose and usage. | MaterialProperty.hasMixedValue
public bool
hasMixedValue
;
Description
Does this property have multiple different values? (Read Only)
When multiple materials are selected at once, some of their properties can have different values. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_80256786b82d | unity_docs | editor | Show me a Unity C# example demonstrating `PlayerSettings.Android.startInFullscreen`. | PlayerSettings.Android.startInFullscreen
public static bool
startInFullscreen
;
Description
Start in fullscreen mode.
If not set, Android displays the navigation bar while your game loads.
```csharp
using UnityEngine;
using UnityEditor;
using UnityEditor.Build;public class StartInFullscreenSample : MonoBehavi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_421a68e528d0 | unity_docs | animation | What is `Animations.AnimatorControllerPlayable.GetBool` in Unity? Explain its purpose and usage. | AnimatorControllerPlayable.GetBool
Declaration
public bool
GetBool
(string
name
);
Declaration
public bool
GetBool
(int
id
);
Parameters
Parameter
Description
name
The parameter name.
id
The parameter ID.
Returns
bool
The value of the parameter.
Description
Returns the value of the given boole... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_31aeb279802f | unity_docs | rendering | What is `LightingSettings.lightmapPadding` in Unity? Explain its purpose and usage. | LightingSettings.lightmapPadding
public int
lightmapPadding
;
Description
Sets the distance (in texels) between separate UV tiles in lightmaps. (Editor only).
The range is 2 to 100. The default value is 2.
This setting can be useful when scaling lightmaps down to support lower-end hardware, which can lead to b... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_109d68271a9b | unity_docs | physics | What is `Cloth.GetSelfAndInterCollisionIndices` in Unity? Explain its purpose and usage. | Cloth.GetSelfAndInterCollisionIndices
Declaration
public void
GetSelfAndInterCollisionIndices
(List<uint>
indices
);
Parameters
Parameter
Description
indices
List to be populated with cloth particle indices that are used for self and/or inter collision.
Description
Get list of particles to be used for sel... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f9f0de9b10dd | unity_docs | editor | Show me a Unity code example for 'Include additional files in a build'. | platform.
On most platforms
Application.streamingAssetsPath
is a directory accessible using regular file system APIs.
On Android and the Web platform, it’s impossible to access the streaming asset files directly via file system APIs because these platforms return a URL. Use the UnityWebRequest class to access the conte... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e7a00d710815 | unity_docs | performance | Explain 'Collect frame timing data' in Unity. | Use the FrameTimingManager API to collect data about the performance of individual frames in your application, and optionally display the data in the Profiler window.
Page Description Frame Timing Manager introduction
Learn about how the Frame Timing Manager works, and which platforms it supports.
Get frame timing data... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9461e0728937 | unity_docs | rendering | What is `SketchUpImporter` in Unity? Explain its purpose and usage. | SketchUpImporter
class in
UnityEditor
/
Inherits from:
ModelImporter
Description
Derives from AssetImporter to handle importing of SketchUp files.
From the SketchUpImporter, you can access certain properties that are extracted from the SketchUp file.
The following is an example of showing the geo coordinate ex... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_94ac0e19e7e3 | unity_docs | rendering | What is `SceneManagement.StageUtility` in Unity? Explain its purpose and usage. | StageUtility
class in
UnityEditor.SceneManagement
Description
Utility methods related to stages.
Static Methods
Method
Description
GetCurrentStage
The current Stage can either be the MainStage or any other opened Stage, visualized in the Scene view as the last breadcrumb in the breadcrumb bar.
GetCurrentStage... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_31e123ee7fd7 | unity_docs | editor | Show me a Unity C# example demonstrating `EditorUtility.OpenFolderPanel`. | EditorUtility.OpenFolderPanel
Declaration
public static string
OpenFolderPanel
(string
title
,
string
folder
,
string
defaultName
);
Description
Displays the "open folder" dialog and returns the selected path name.
Additional resources:
OpenFilePanel
,
SaveFolderPanel
functions.
```csharp
using UnityEdit... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_81440126186e | unity_docs | scripting | What is `ComputeBuffer.CopyCount` in Unity? Explain its purpose and usage. | ComputeBuffer.CopyCount
Declaration
public static void
CopyCount
(
ComputeBuffer
src
,
ComputeBuffer
dst
,
int
dstOffsetBytes
);
Parameters
Parameter
Description
src
Append/consume buffer to copy the counter from.
dst
A buffer to copy the counter to.
dstOffsetBytes
Target byte offset in
dst
.
Desc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f4512c6bdcfa | unity_docs | rendering | What is `Profiling.RawFrameDataView.GetSampleCategoryIndex` in Unity? Explain its purpose and usage. | RawFrameDataView.GetSampleCategoryIndex
Declaration
public ushort
GetSampleCategoryIndex
(int
sampleIndex
);
Parameters
Parameter
Description
sampleIndex
Index of the Profiler sample.
Returns
ushort
Returns Profiler category index.
Description
Gets Profiler marker category for the specific sample.
U... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2536b8a59e15 | unity_docs | rendering | What is `ShaderUtil.RegisterShader` in Unity? Explain its purpose and usage. | ShaderUtil.RegisterShader
Declaration
public static void
RegisterShader
(
Shader
shader
);
Description
Register a user created shader.
Register a
Shader
created with ShaderUtil.CreateShaderAsset with Unity. This is required if you wish your shader to exist when calling
Shader.Find
and the material inspect... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_2329a7941cc1_doc_7 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | The XR Controller instance that is associated with this state
Signature:
```csharp
public XRController m_XRController;
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_man_3f762096e42b | unity_docs | rendering | In Unity's 'Building plug-ins for desktop platforms', what is 'Requirements' and how does it work? | You can build your plug-in as a universal binary that’s compatible with 64-bit architectures. Alternatively, you can provide separate dylib files.
If you are using C++ (.cpp
) or Objective-C (.mm
) to implement the plug-in, declare the functions with C linkage to avoid name mangling issues:
```
extern "C"
{
float Exam... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_caa87e7c9e56 | unity_docs | scripting | Show me a Unity C# example demonstrating `Pool.LinkedPool_1.Get`. | LinkedPool<T0>.Get
Declaration
public T
Get
();
Returns
T
A pooled object or a new instance if the pool is empty.
Description
Get an instance from the pool. If the pool is empty then a new instance will be created.
```csharp
using System.Text;
using UnityEngine;
using UnityEngine.Pool;// This component re... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b670bd1e0e0d | unity_docs | scripting | What is `Rendering.RenderPipelineManager.activeRenderPipelineCreated` in Unity? Explain its purpose and usage. | RenderPipelineManager.activeRenderPipelineCreated
Description
Delegate that you can use to invoke custom code right after
RenderPipelineManager.currentPipeline
is created.
Unity does not switch the render pipeline immediately when you set
GraphicsSettings.currentRenderPipeline
or
QualitySettings.renderPipeline... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_36d0a7a2ae90 | unity_docs | rendering | Explain 'Materials' in Unity. | In Unity, you use materials and shaders together to define the appearance of your
scene
.
Page Description Introduction to materials
Understand using materials to describe the appearance of surfaces.
Create and assign a material
Create a material asset, and assign it to a
GameObject
.
Upgrade material assets to URP or ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_0a212619fc54_doc_13 | github | scripting | What does `IPoolable` do in this Unity script? Explain its purpose and signature. | Logs an error indicating no pool was found for the specified type.The type of the poolable object.
Signature:
```csharp
public static void LogNoPoolFoundError<T>() where T : IPoolable =>
Debug.LogError($"No pool found for type
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
gh_dcd025c62afb_doc_13 | github | scripting | What does `OnAddNewInputButtonClick` do in this Unity script? Explain its purpose and signature. | Occurs when the add new input button is clicked.
Signature:
```csharp
protected virtual void OnAddNewInputButtonClick()
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_73ff2ddd79bb | unity_docs | rendering | What is `WebCamKind.Telephoto` in Unity? Explain its purpose and usage. | WebCamKind.Telephoto
Description
A Telephoto camera device. These devices have a longer focal length than a wide-angle camera.
On iOS devices, this value is reported directly by the hardware.
On Android devices, this value is reported for cameras with a calculated Equivalent Focal Length of greater than 45mm.
Addit... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bda0a27f1a13 | unity_docs | ui | Show me a Unity C# example demonstrating `GUILayout.EndArea`. | GUILayout.EndArea
Declaration
public static void
EndArea
();
Description
Close a GUILayout block started with BeginArea.
Explained Area of the example.
```csharp
using UnityEngine;public class ExampleScript : MonoBehaviour
{
void OnGUI()
{
GUILayout.BeginArea(new Rect(10, 10, 100, 100));
GUILayout.Button("... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_fdf96eeef486 | unity_docs | scripting | In Unity's 'Instantiate projectiles and explosions', what is 'Create a projectile prefab asset' and how does it work? | In the Hierarchy, right-click and select
3D Object
>
Sphere
.
Select the sphere, and in its Inspector, select
Add Component
>
Rigidbody
. The sphere needs a Rigidbody so that it can fly through the air and detect when a collision happens.
Rename the sphere to Projectile and then drag it into the Assets folder of your p... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8e63014dfd3e | unity_docs | xr | What is `Networking.UnityWebRequest.Dispose` in Unity? Explain its purpose and usage. | UnityWebRequest.Dispose
Declaration
public void
Dispose
();
Description
Signals that this
UnityWebRequest
is no longer being used, and should clean up any resources it is using.
You must call Dispose once you have finished using a
UnityWebRequest
object, regardless of whether the request succeeded or failed... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a8d91db296c9 | unity_docs | scripting | Show me a Unity C# example demonstrating `Rect.ToString`. | tring
Declaration
public string
ToString
();
Declaration
public string
ToString
(string
format
);
Declaration
public string
ToString
(string
format
,
IFormatProvider
formatProvider
);
Parameters
Parameter
Description
format
A numeric format string.
formatProvider
An object that specifies culture-... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0f775dda472e | unity_docs | editor | Show me a Unity C# example demonstrating `BuildAssetBundleOptions.ChunkBasedCompression`. | h this format can be loaded incrementally, e.g. without decompressing the full contents into memory.
This is the default format used for AssetBundles stored in the AssetBundle Cache.
Additional resources:
AssetBundles compression
,
BuildCompression
,
CompressionType
,
ArchiveHandle.Compression
,
Caching
,
Build... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_39130cc8fbf0 | unity_docs | input | What is `UIElements.PointerCancelEvent` in Unity? Explain its purpose and usage. | PointerCancelEvent
class in
UnityEngine.UIElements
/
Inherits from:
UIElements.PointerEventBase_1
/
Implemented in:
UnityEngine.UIElementsModule
Description
This event is sent when pointer interaction is cancelled.
A PointerCancelEvent can trickle down or bubble up, but cannot be cancelled.
Disabled elem... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e57eebbf235c | unity_docs | scripting | What is `SystemLanguage.Belarusian` in Unity? Explain its purpose and usage. | SystemLanguage.Belarusian
Description
Belarusian.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
//This checks if your computer's operating system is in the Belarusian language
if (Application.systemLanguage == SystemLanguage.Belarusian)
{
//Outputs into console that the sys... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1cc5543157fa | unity_docs | editor | What is `EditorGUIUtility.GetBuiltinSkin` in Unity? Explain its purpose and usage. | EditorGUIUtility.GetBuiltinSkin
Declaration
public static
GUISkin
GetBuiltinSkin
(
EditorSkin
skin
);
Description
Get one of the built-in GUI skins, which can be the game view, inspector or Scene view skin as chosen by the parameter. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b1da1b60c660 | unity_docs | scripting | What is `Search.ItemSelectors.Enumerate` in Unity? Explain its purpose and usage. | ItemSelectors.Enumerate
Declaration
public static IEnumerable<SearchColumn>
Enumerate
(IEnumerable<SearchItem>
items
);
Parameters
Parameter
Description
items
Search items.
Returns
IEnumerable<SearchColumn>
Search columns.
Description
Enumerate search column for a given set of search items.
See
Sea... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8e2e51eed6ae | unity_docs | scripting | What is `Experimental.GraphView.Scope.RemoveElements` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
Scope.RemoveElements
Declaration
public void
RemoveElements
(IEnumerable<GraphElement>
elements
);
Parameters
Parameter
Description
elements
The elements to remove.
Description
Removes elements from the Scope. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b837c3a03d78 | unity_docs | math | What are the parameters of `Ray2D.ctor` in Unity? | Description Creates a 2D ray starting at origin along direction . ```csharp
using UnityEngine;public class ExampleClass : MonoBehaviour
{
void Start()
{
// Create a ray from the transform position along the transform's z-axis
Ray2D ray = new Ray2D(transform.position, transform.forward);
}
}
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c3c1a1799548 | unity_docs | math | Show me a Unity C# example demonstrating `Quaternion.ToAngleAxis`. | e axis of rotation as a normalized
Vector3
. If the quaternion represents no rotation, the axis defaults to
Vector3.right
.
Description
Converts a rotation to angle-axis representation.
This method decomposes the quaternion into an angle (in degrees) and a unit vector representing the axis of rotation. Normalize t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a24221a0995e | unity_docs | rendering | What is `Light.renderingLayerMask` in Unity? Explain its purpose and usage. | Light.renderingLayerMask
public int
renderingLayerMask
;
Description
Determines which rendering LayerMask this Light affects.
When using a Scriptable Render Pipeline, you can specify an additional rendering-specific LayerMask. During shadow passes, this filters Renderers based on the Light and the Renderers re... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_d7da16df1d69 | github | scripting | Write a Unity C# MonoBehaviour script called Test MBP | ```csharp
using UnityEngine;
using System.Collections;
using System.Threading;
public class TestMBP : MonoBehaviourPlus<TestMBP> {
public int ID; //assign a ID from inspector
public int sleep = 100; //
public int result = 0; //each frame the result is added one
protected override void ParallelUpdate () ... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_man_06974dbd279b | unity_docs | rendering | Explain 'Set up multiple scenes' in Unity. | You can add multiple scenes, edit how you view them, and change the scene settings.
To create a new scene, see
Creating, loading, and saving Scenes
.
## Add scenes
To add a new scene to your project, do one of the following:
Right click to open the menu of a scene asset in the
Project window
and select
Open Scene Add... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8316b17566b8 | unity_docs | editor | What is `SerializedProperty.isArray` in Unity? Explain its purpose and usage. | SerializedProperty.isArray
public bool
isArray
;
Description
Is this property an array? (Read Only)
Additional resources:
arraySize
,
GetArrayElementAtIndex
.
```csharp
using System.Text;
using UnityEditor;
using UnityEngine;// Example showing the structure of SerializedProperty objects that comprise an Arra... | 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.