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_c1b2776275d5 | unity_docs | scripting | Show me a Unity C# example demonstrating `ForceMode.Impulse`. | orce instantly with a single function call. This mode depends on the mass of rigidbody so more force must be applied to push or twist higher-mass objects the same amount as lower-mass objects.
This mode is useful for applying forces that happen instantly, such as forces from explosions or collisions.
In this mode, the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_72b8c4cd1b00 | unity_docs | math | In Unity's 'USS transform', what is 'Translate' and how does it work? | The Translate control sets the translate property. To use it, enter values in the X and Y boxes and specify the unit.
Tip
: You can enter
%
or px after values. This automatically changes the displayed unit in the unit selector. You can also drag to define the values in the X and Y boxes. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b92eb3b52147 | unity_docs | scripting | Explain 'Rotation Constraint component' in Unity. | A Rotation Constraint component rotates a GameObject to match the rotation of its source GameObjects.
## Properties
Property Description Activate
After you rotate the constrained GameObject and its source GameObjects, click Activate to save this information.
Activate
saves the current offset from the source GameObjec... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_860356c38d22 | unity_docs | scripting | What is `FrameTiming.firstSubmitTimestamp` in Unity? Explain its purpose and usage. | FrameTiming.firstSubmitTimestamp
public ulong
firstSubmitTimestamp
;
Description
This is the CPU clock time of the time when the first job was submitted to GPU.
Use
FrameTimingManager.GetCpuTimerFrequency
to convert timestamps to seconds.
```csharp
using UnityEngine;class Example
{
static readonly double k_... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3d23427dc612 | unity_docs | scripting | What is `BuildCompression` in Unity? Explain its purpose and usage. | BuildCompression
struct in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Contains information about compression methods, compression levels and block sizes that are supported by Asset Bundle compression at build time and recompression at runtime.
The formats that are currently supported are ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_66158cd00145 | unity_docs | rendering | What is `Rendering.RayTracingInstanceMaterialCRC` in Unity? Explain its purpose and usage. | RayTracingInstanceMaterialCRC
struct in
UnityEngine.Rendering
/
Implemented in:
UnityEngine.CoreModule
Description
A Material instance id and CRC hash value pair. This information is returned by a
RayTracingAccelerationStructure.CullInstances
call.
Additional resources:
RayTracingInstanceCullingFlags
,
Mate... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_478b3f574699 | unity_docs | animation | What is `Animations.LookAtConstraint.SetSources` in Unity? Explain its purpose and usage. | LookAtConstraint.SetSources
Declaration
public void
SetSources
(List<ConstraintSource>
sources
);
Parameters
Parameter
Description
sources
The list of sources to set.
Description
Sets the list of sources on the component.
Throws ArgumentNullException, if the list of sources is null. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8de2ad0dd8ba | unity_docs | scripting | What is `Search.SearchSelection.Last` in Unity? Explain its purpose and usage. | SearchSelection.Last
Declaration
public
Search.SearchItem
Last
();
Returns
SearchItem
Last selected item in selection. Returns null if no items are selected.
Description
Gets the last selected item in the selection. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_070625e1262d | unity_docs | editor | Give me an overview of the `ManagedReferenceMissingType` class in Unity. | ManagedReferenceMissingType
struct in
UnityEditor
Description
Represents a managed reference object that has a missing type.
ManagedReferenceMissingType describes a managed reference object that could not be deserialized because it is missing its type.
It includes the details of the type (expressed by its assembl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b4b98ca49955 | unity_docs | physics | What is `PhysicsShape2D.adjacentEnd` in Unity? Explain its purpose and usage. | PhysicsShape2D.adjacentEnd
public
Vector2
adjacentEnd
;
Description
Defines the position of a virtual point adjacent to the end vertex of an edge shape.
An edges shape is comprised of multiple edges (line segments) defined by all its vertices. However, when a collision occurs with the end vertex of the shape ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fa02082dc304 | unity_docs | scripting | What is `Experimental.GraphView.GraphView.GetPortByGuid` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphView.GetPortByGuid
Declaration
public
Experimental.GraphView.Port
GetPortByGuid
(string
guid
);
Parameters
Parameter
Description
guid
The GUID.
Returns
Port
The first port found with given GUID. Null if none fo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_abaa96d25608 | unity_docs | scripting | What is `VersionControl.VersionControlUtils.IsPathVersioned` in Unity? Explain its purpose and usage. | VersionControlUtils.IsPathVersioned
Declaration
public static bool
IsPathVersioned
(string
path
);
Parameters
Parameter
Description
path
Path to the file.
Returns
bool
true
if the file should be tracked by VCS.
false
otherwise.
Description
Allows you to check whether the specified file is tracked b... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fd98a074970c | unity_docs | scripting | What is `ParticleSystem.ExternalForcesModule.influenceCount` in Unity? Explain its purpose and usage. | ParticleSystem.ExternalForcesModule.influenceCount
public int
influenceCount
;
Description
The number of Force Fields explicitly provided to the influencers list.
When
influenceFilter
is set to
ParticleSystemGameObjectFilter.List
then only Force Fields in the influencers list affect the Particle System.
Ad... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_438dbb1d1a42 | unity_docs | math | What is `Mesh.SetSubMesh` in Unity? Explain its purpose and usage. | Mesh.SetSubMesh
Declaration
public void
SetSubMesh
(int
index
,
Rendering.SubMeshDescriptor
desc
,
Rendering.MeshUpdateFlags
flags
);
Parameters
Parameter
Description
index
Sub-mesh index. See
subMeshCount
. Out of range indices throw an exception.
desc
Sub-mesh data.
flags
Flags controlling the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_73bc85dfddf4 | unity_docs | physics | Explain 'Build for Embedded Linux from the command line' in Unity. | To build a Unity project for the Embedded Linux system on the command line interface (CLI), you must have the Unity Editor installed on the build host. The build host can be a Linux, Windows, or macOS machine.
The following example uses the Linux variant of the executable (
Unity
), but you can replace it with an equiv... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d0cac3173124 | unity_docs | scripting | What is `Handles.DrawWireDisc` in Unity? Explain its purpose and usage. | Handles.DrawWireDisc
Declaration
public static void
DrawWireDisc
(
Vector3
center
,
Vector3
normal
,
float
radius
,
float
thickness
= 0.0f);
Parameters
Parameter
Description
center
The center of the disc in world space.
normal
The normal of the disc in world space.
radius
The radius of the disc in... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_972fa2ae885b | unity_docs | performance | What is `Experimental.Rendering.ScriptableBakedReflectionSystem.Cancel` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
ScriptableBakedReflectionSystem.Cancel
Declaration
public void
Cancel
();
Description
Cancel the running bake jobs.
This implementation does nothing.
Override this method in your own implementation to cancel the running oper... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e21a9ef874be | unity_docs | rendering | What is `TextureImporter.mipmapEnabled` in Unity? Explain its purpose and usage. | TextureImporter.mipmapEnabled
public bool
mipmapEnabled
;
Description
Generate Mip Maps.
Select this to enable mip-map generation. Mipmaps are smaller versions of the Texture that get used when the Texture is very small on screen. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_1972c1f5cb3a | unity_docs | editor | Explain 'Focus events' in Unity. | Focus events occur when an element gains or loses focus.
Focus events are useful when you need to change focus to and away from
visual elements
. Controls often use focus events to change their contents, depending on the focus state. For example, a text field can display placeholder text while it isn’t in focus, or it ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_34624ab5a6dd | unity_docs | math | What is `IMGUI.Controls.ArcHandle.DefaultAngleHandleDrawFunction` in Unity? Explain its purpose and usage. | ArcHandle.DefaultAngleHandleDrawFunction
Declaration
public static void
DefaultAngleHandleDrawFunction
(int
controlID
,
Vector3
position
,
Quaternion
rotation
,
float
size
,
EventType
eventType
);
Parameters
Parameter
Description
controlID
The control ID for the handle.
position
The position of t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_e026a2ab6a43 | github | scripting | Write a Unity C# script called Map Game Object Scene | ```csharp
using AOT;
using Wrld.Common.Maths;
using Wrld.Meshes;
using Wrld.Space;
using Wrld.Streaming;
using System;
using System.Runtime.InteropServices;
using UnityEngine;
using Wrld.Utilities;
using Wrld.Interop;
namespace Wrld
{
public class MapGameObjectScene
{
public delegate voi... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_4186e95400cf | unity_docs | rendering | What is `Rendering.FilteringSettings.sortingLayerRange` in Unity? Explain its purpose and usage. | FilteringSettings.sortingLayerRange
public
Rendering.SortingLayerRange
sortingLayerRange
;
Description
Unity renders objects whose
SortingLayer.value
value is within range specified by this
SortingLayerRange
.
Additional resources: ScriptableRenderContext.DrawRenderers,
SortingLayer.value
,
SortingLayerR... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_0299b194baf0 | unity_docs | rendering | In Unity's 'Mesh Renderer component reference', what is 'Materials' and how does it work? | The Materials section lists all the materials that this component uses.
Property Description Size
The number of elements in the material list.
If you decrease the number of elements, Unity deletes the elements at the end of the list. If you increase the number of elements, Unity adds new elements to the end of the list... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d0929aaaf2a7 | unity_docs | editor | Show me a Unity C# example demonstrating `EditorPrefs.GetInt`. | key
Name of key to read integer from.
defaultValue
Integer value to return if the key is not in the storage.
Returns
int
The value stored in the preference file.
Description
Returns the value corresponding to
key
in the preference file if it exists.
If the value doesn't already exist in the preference fil... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_798c9da34092 | unity_docs | scripting | What is `PluginImporter.GetCompatibleWithAnyPlatform` in Unity? Explain its purpose and usage. | PluginImporter.GetCompatibleWithAnyPlatform
Declaration
public bool
GetCompatibleWithAnyPlatform
();
Returns
bool
True if the plugin is flagged as being compatible with
Any Platform
, otherwise returns false.
Description
Checks whether a plugin is flagged as being compatible with
Any Platform
.
This doe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c76c808f1c15 | unity_docs | physics | What is `MonoBehaviour.OnTriggerExit2D` in Unity? Explain its purpose and usage. | MonoBehaviour.OnTriggerExit2D(Collider2D)
Parameters
Parameter
Description
other
The other Collider2D involved in this collision.
Description
Sent when another object leaves a trigger collider attached to this object (2D physics only).
Further information about the other collider is reported in the Collider2D... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_057b9fd3207a | unity_docs | rendering | In Unity's 'Particle System Force Field component reference', what is 'Rotation' and how does it work? | Property Function Speed
Set the speed for the Particle System to propel particles around the vortex, which is the center of the force field. The higher the value, the faster the speed. You can specify a constant speed or vary the speed over time. For more information, see the
Varying properties over time
documentation.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b694e34f2a1f | unity_docs | rendering | What is `Handles.SetCamera` in Unity? Explain its purpose and usage. | Handles.SetCamera
Declaration
public static void
SetCamera
(
Camera
camera
);
Declaration
public static void
SetCamera
(
Rect
position
,
Camera
camera
);
Description
Set the current camera so all Handles and Gizmos are draw with its settings.
Sets
Camera.current
to be
camera
and sets its pixelRec... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2eb2aae33bad | unity_docs | rendering | Explain 'Enable reflections of reflections' in Unity. | You may have seen a situation where two mirrors are placed fairly close together and facing each other. Both mirrors reflect not only the mirror opposite but also the reflections produced by that mirror. The result is an endless progression of reflections between the two; reflection between objects like this are known ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_afac3d25a74c | unity_docs | ui | In Unity's 'Multiplayer Sessions Building Block', what is 'Initial setup' and how does it work? | You can validate that the Building Block is installed correctly by opening one of the
included example scenes
.
Open one of the Multiplayer scenes by navigating to
Assets
>
Blocks
>
MultiplayerSession
>
Scenes
.
Select Play to enter Play mode.
You can now interact with the UI elements in the scene to create a new sessi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_adcba940ae0a | unity_docs | scripting | What is `Application.deepLinkActivated` in Unity? Explain its purpose and usage. | Application.deepLinkActivated
Parameters
Parameter
Description
value
The deep link URL that activated the application.
Description
This event is raised when an application running on Android, iOS, or the Universal Windows Platform (UWP) is activated using a deep link URL.
Note
: When this delegate is called
A... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_65b79ebaed4e | unity_docs | input | In Unity's 'Input Manager', what is 'Adding, removing, and copying virtual axes' and how does it work? | To add a virtual axis, increase the number in the Size field. This creates a new axis at the bottom of the list. The new axis copies the properties of the previous axis in the list.
To remove a virtual axis, you can either:
Decrease the number in the Size field. This removes the last axis in the list.
Right-click any a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_84115bd98486 | unity_docs | rendering | Explain 'Introduction to batching meshes' in Unity. | Batching is a
draw call optimization
method that combines meshes that use the same material, so that Unity can render them using fewer updates to the render state. Batching can improve performance, memory efficiency, and reduce CPU overhead, leading to a smoother frame rate and better player experience.
Batching has th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1364b4939868 | unity_docs | rendering | What is `Rendering.CullingOptions.OcclusionCull` in Unity? Explain its purpose and usage. | CullingOptions.OcclusionCull
Description
When this flag is set, Unity performs occlusion culling as part of the culling operation.
Default value: set if the
Camera
from which you obtained the CullingParameters object has
Camera.useOcclusionCulling
set to
true
. Otherwise, unset.
Additional resources:
Camera.u... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c6bdbe21b5f1 | unity_docs | editor | What is `Build.Content.ContentBuildInterface.GenerateAssetBundleBuilds` in Unity? Explain its purpose and usage. | ContentBuildInterface.GenerateAssetBundleBuilds
Declaration
public static AssetBundleBuild[]
GenerateAssetBundleBuilds
();
Description
Returns an array of AssetBundleBuild structs that detail the current AssetBundle layout, as set through the Inspector and stored in the AssetDatabase.
This API does not generate... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e5f76620526a | unity_docs | editor | What is `UIElements.UIToolkitInputConfiguration.SetRuntimeInputBackend` in Unity? Explain its purpose and usage. | UIToolkitInputConfiguration.SetRuntimeInputBackend
Declaration
public static void
SetRuntimeInputBackend
(
UIElements.UIToolkitInputBackendOption
backend
);
Parameters
Parameter
Description
backend
The input backend to be used as the source of input for UI Toolkit events at runtime.
Description
Use th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_138fdb84a130_doc_10 | github | scripting | What does `SetLocale` do in this Unity script? Explain its purpose and signature. | Sets the current locale using its index from the Localization Settings.Index of the locale as in the localization settings.
Signature:
```csharp
public void SetLocale(int localeIdx)
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_6be6596f869b | unity_docs | audio | What is `AudioSource.resource` in Unity? Explain its purpose and usage. | AudioSource.resource
public
Audio.AudioResource
resource
;
Description
The default
AudioResource
to play.
You can also use this property to set the
AudioResource
that plays next.
Note
: Audio resources don’t provide direct access to properties like
length
. However, if your audio resource is an
AudioCl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_bf246d539488 | github | scripting | Write a Unity C# script called Spawn System | ```csharp
using System.Collections.Generic;
using TinyECS.Impls;
using TinyECS.Interfaces;
using UnityEngine;
/// <summary>
/// This class is a type of a reactive system.
/// Reactive systems are executed when something within world's context has changed
/// and this update passes system's filter
/// </summary>
publ... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_ad5c6a2ef5e4 | unity_docs | scripting | Show me a Unity C# example demonstrating `Rendering.RenderPipelineManager.activeRenderPipelineTypeChanged`. | r a frame is a different type to the one from the previous frame, Unity executes the methods in this delegate's invocation list.
If you are writing a tool that relies on the resources or results of a type of
RenderPipeline
, you can use this delegate to be notified of any change.
The following code example demonstrate... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_25bdd450400c | unity_docs | rendering | Show me a Unity C# example demonstrating `BuildAssetBundleOptions`. | BuildAssetBundleOptions
enumeration
Description
Asset Bundle building options.
These flags allows you to configure options when calling
BuildPipeline.BuildAssetBundles
.
Additional resources:
AssetBundle
,
BuildPipeline.BuildAssetBundles
```csharp
//Create a folder (right click in the Assets folder and go to C... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_66a0665901b0 | unity_docs | rendering | Explain 'Reduce shader duplication in AssetBundles' in Unity. | If you use AssetBundles , Unity might compile duplicate shaders. For example, if materials in two AssetBundles reference the same shader , Unity might include a copy of the compiled shader in each AssetBundle. This can increase the memory and storage space your project uses, and break
draw call batching
.
To avoid dupl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1a831fcf563d | unity_docs | animation | What is `HumanLimit` in Unity? Explain its purpose and usage. | HumanLimit
struct in
UnityEngine
/
Implemented in:
UnityEngine.AnimationModule
Description
This class stores the rotation limits that define the
muscle
for a single human bone.
Properties
Property
Description
axisLength
Length of the bone to which the limit is applied.
center
The default orientation of a ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_899cd231534e | unity_docs | math | What is `Rendering.CommandBuffer.SetRayTracingVectorParam` in Unity? Explain its purpose and usage. | CommandBuffer.SetRayTracingVectorParam
Declaration
public void
SetRayTracingVectorParam
(
Rendering.RayTracingShader
rayTracingShader
,
string
name
,
Vector4
val
);
Declaration
public void
SetRayTracingVectorParam
(
Rendering.RayTracingShader
rayTracingShader
,
int
nameID
,
Vector4
val
);
Paramete... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d8d622098ce3 | unity_docs | physics | What is `Physics2D.GetRayIntersectionAll` in Unity? Explain its purpose and usage. | Physics2D.GetRayIntersectionAll
Declaration
public static RaycastHit2D[]
GetRayIntersectionAll
(
Ray
ray
,
float
distance
,
int
layerMask
= DefaultRaycastLayers);
Parameters
Parameter
Description
ray
The 3D ray defining origin and direction to test.
distance
The maximum distance over which to cast the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ae7eddd4cdb6 | unity_docs | scripting | What is `RectTransform.SetSizeWithCurrentAnchors` in Unity? Explain its purpose and usage. | RectTransform.SetSizeWithCurrentAnchors
Declaration
public void
SetSizeWithCurrentAnchors
(
RectTransform.Axis
axis
,
float
size
);
Parameters
Parameter
Description
axis
The axis to specify the size along.
size
The desired size along the specified axis.
Description
Makes the RectTransform calculated re... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_01260582865f | unity_docs | editor | What is `PlayModeStateChange` in Unity? Explain its purpose and usage. | PlayModeStateChange
enumeration
Description
Enumeration specifying a change in the Editor's play mode state.
Additional resources:
PauseState
,
EditorApplication.playModeStateChanged
,
EditorApplication.isPlaying
.
Properties
Property
Description
EnteredEditMode
Occurs during the next update of the Editor ap... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_6d418a5a5411 | github | scripting | Write a Unity C# script called Read Only Transform Access Attribute | ```csharp
using System;
using UnityEngine.Jobs;
namespace Gilzoide.UpdateManager.Jobs
{
/// <summary>
/// Add this to a managed <see cref="TransformAccess"/>-enabled job struct type to specify that its transform access is read-only.
/// </summary>
/// <remarks>
/// Read-only transform jobs may be f... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
gh_1c0a0874852f | github | scripting | Write a Unity C# script called Set Boolean | ```csharp
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace MBT
{
[AddComponentMenu("")]
[MBTNode(name = "Tasks/Set Boolean")]
public class SetBoolean : Leaf
{
public BoolReference source = new BoolReference(true);
// [SerializeField]
// p... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_man_982759636ecd | unity_docs | rendering | Explain 'SubShader block in ShaderLab reference' in Unity. | To define a SubShader in ShaderLab , you use a SubShader block. This page contains information on using SubShader blocks.
Inside the SubShader block, you can:
Assign a LOD (level of detail) value to the SubShader, using the LOD block. See
assigning a LOD value to a SubShader
.
Assign key-value pairs of data to the SubS... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b4324ccfbdff | unity_docs | scripting | Show me a Unity C# example demonstrating `Handles.DrawWireDisc`. | space units.
thickness
Line thickness in UI points (zero thickness draws single-pixel line).
Description
Draws the outline of a flat disc in 3D space.
The
Handles.color
and
Handles.matrix
properties colorize and additionally transform the disc position. Unity ignores
DrawWireDisc
(that is, nothing happens) w... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_1a910c7c83a2_doc_3 | github | scripting | What does `Populate` do in this Unity script? Explain its purpose and signature. | Attempts to populate the selected override tile using the chosen sprite.The assumption here is that the sprite set selected by the user has the samenaming scheme as the original sprite. That is to say, they should both have the same numberof sprites, each sprite ends in an underscore followed by a number, and that they... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_a77e2d61aba1 | unity_docs | scripting | What is `UIElements.UQueryBuilder_1.Children` in Unity? Explain its purpose and usage. | UQueryBuilder<T0>.Children
Declaration
public UQueryBuilder<T2>
Children
(string
name
,
params string[]
classes
);
Description
Selects all direct child elements of elements matching the previous rules.
Declaration
public UQueryBuilder<T2>
Children
(string
name
,
string
className
);
Description
Sele... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2b68aaa17db4 | unity_docs | rendering | In Unity's 'HLSL pragma directives reference', what is 'Standard pragma directives' and how does it work? | Unity supports all
#pragma
directives that are part of standard HLSL, as long as these directives are in regular include files. For more information on these directives, see the HLSL documentation:
pragma Directive
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_609ca6642d45 | unity_docs | rendering | Explain 'Offset command in ShaderLab reference' in Unity. | Sets the depth bias on the GPU.
## Render pipeline compatibility
Feature name Universal Render Pipeline
(URP)
High Definition Render Pipeline (HDRP)
Custom SRP
Built-in Render Pipeline Offset Yes Yes Yes
Yes
## Syntax
This command makes a change to the render state. Use it in a Pass block to set the render state fo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f60934b1fe6c | unity_docs | scripting | What is `Experimental.GraphView.ContentDragger.clampToParentEdges` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
ContentDragger.clampToParentEdges
public bool
clampToParentEdges
;
Description
If true, it does not allow the dragged element to exit the parent's edges. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1218e33e2923 | unity_docs | rendering | What is `BillboardAsset` in Unity? Explain its purpose and usage. | BillboardAsset
class in
UnityEngine
/
Inherits from:
Object
/
Implemented in:
UnityEngine.CoreModule
Description
BillboardAsset describes how a billboard is rendered.
Billboards are a level-of-detail (LOD) method of drawing complicated 3D objects in a simpler manner if they are further away. Because the obje... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1a0f88bae69e | unity_docs | scripting | Show me a Unity C# example demonstrating `ScriptableObject.OnDisable`. | criptableObject that is currently loaded in memory but is not referenced in that scene.
On invocation of
Resources.UnloadUnusedAssets
for any ScriptableObject that was previously deselected in the
Project window
.
On
domain reload
, for all ScriptableObjects loaded in memory. Subsequently
OnEnable
is called for... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a1e023db64b2 | unity_docs | rendering | What is `AssetImporters.TextureGenerationOutput.output` in Unity? Explain its purpose and usage. | TextureGenerationOutput.output
public
Texture
output
;
Description
This is a
Texture
generated by
TextureGenerator.GenerateTexture
based on the colorBuffer argument passed to that function.
The actual texture type (2D, 3D, cubemap,..) depends on the
TextureImporterSettings.textureShape
settings of the g... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4f2b629f2eb7 | unity_docs | rendering | In Unity's 'Search GameObjects with the Hierarchy search provider', what is 'Components and properties' and how does it work? | The syntax for components and properties in the Hierarchy search provider:
Use the t prefix to search for a component. The prefix can require an exact match if you use
=
, or a partial match if you use
:
.
h: t:Came
h: t=Camera
Use the
component.property or p(component.property)
notation to find properties with a speci... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_793d98dbc3d1 | unity_docs | scripting | Show me a Unity C# example demonstrating `QualitySettings.anisotropicFiltering`. | QualitySettings.anisotropicFiltering
public static
AnisotropicFiltering
anisotropicFiltering
;
Description
Global anisotropic filtering mode.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
// Disable all anisotropic filtering
QualitySettings.anisotropicFiltering = Aniso... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_171595abc83d | unity_docs | networking | What is `XR.XRMirrorViewBlitMode` in Unity? Explain its purpose and usage. | XRMirrorViewBlitMode
struct in
UnityEngine.XR
/
Implemented in:
UnityEngine.XRModule
Description
Engine reserved blit modes. Blit mode capabilities should be queried from
XRDisplaySubsystemDescriptor.GetAvailableMirrorBlitModeCount
and
XRDisplaySubsystemDescriptor.GetMirrorBlitModeByIndex
.
Static Properties... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a86b9efe76cd | unity_docs | scripting | What is `Experimental.GraphView.GraphView.SerializeGraphElementsDelegate` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphView.SerializeGraphElementsDelegate
Declaration
public delegate string
SerializeGraphElementsDelegate
(IEnumerable<GraphElement>
elements
);
Parameters
Parameter
Description
elements
Elements to serialize.
Descripti... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f1adce9d144a | unity_docs | math | What is `TransformUtils.GetInspectorRotation` in Unity? Explain its purpose and usage. | TransformUtils.GetInspectorRotation
Declaration
public static
Vector3
GetInspectorRotation
(
Transform
t
);
Parameters
Parameter
Description
t
Transform to get the rotation from.
Returns
Vector3
Rotation as it is shown in the Transform Inspector window.
Description
Returns the rotation of a transf... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c159a46143c0 | unity_docs | rendering | What are the parameters of `Material.EnableKeyword` in Unity? | Description Enables a local shader keyword for this material. Shader keywords determine which shader variants Unity uses. For information on working with local shader keywords and global shader keywords and how they interact, see Using shader keywords with C# scripts . If you pass in a LocalKeyword and it does not exis... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_62c112ce6710 | unity_docs | editor | What is `Search.SearchPropositionFlagsExtensions` in Unity? Explain its purpose and usage. | SearchPropositionFlagsExtensions
class in
UnityEditor.Search
Description
Search proposition flags extension used to manipulate flag bits.
Static Methods
Method
Description
HasAll
Checks if a SearchPropositionFlags contains a set of flags.
HasAny
Checks if a SearchPropositionFlags contains any flags. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9b1e77fd6c07 | unity_docs | scripting | What is `Search.StringView.Equals` in Unity? Explain its purpose and usage. | StringView.Equals
Declaration
public bool
Equals
(object
other
);
Parameters
Parameter
Description
other
An object.
Returns
bool
True if they are equal, otherwise false.
Description
Checks if the
StringView
is equal to the object.
Declaration
public bool
Equals
(string
other
,
stringComparison
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_53a4684d4d5f | unity_docs | rendering | What is `XR.XRDisplaySubsystem.SetMSAALevel` in Unity? Explain its purpose and usage. | XRDisplaySubsystem.SetMSAALevel
Declaration
public void
SetMSAALevel
(int
level
);
Parameters
Parameter
Description
level
The MSAA level.
Description
Set MSAA level for the DisplaySubsystem's render texture. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f997d5ba17d4 | unity_docs | scripting | What are the parameters of `UIElements.UxmlObjectReferenceAttribute.ctor` in Unity? | Description Declares that a field or property is associated with nested UXML objects. Declaration public UxmlObjectReferenceAttribute (string uxmlName ,
params Type[] acceptedTypes ); Parameters Parameter Description uxmlName The name of the nested UXML element that the UXML Objects are serialized to. Note : A null or ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_bd5969e828d3_doc_5 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | This property controls whether or not to update the currently controlled camera (if any) in response to user mouse & touch events.
Signature:
```csharp
public bool IsCameraDrivenFromInput
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f6fff8959e3a | unity_docs | xr | What is `XR.XRDisplaySubsystem.TryGetDroppedFrameCount` in Unity? Explain its purpose and usage. | XRDisplaySubsystem.TryGetDroppedFrameCount
Declaration
public bool
TryGetDroppedFrameCount
(out int
droppedFrameCount
);
Parameters
Parameter
Description
droppedFrameCount
Outputs the number of frames dropped since the last update.
Returns
bool
Returns true if the dropped frame count is available. Return... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4046bddc3632 | unity_docs | editor | What is `PlayerSettings.defaultScreenWidth` in Unity? Explain its purpose and usage. | PlayerSettings.defaultScreenWidth
public static int
defaultScreenWidth
;
Description
Default horizontal dimension of stand-alone player window.
Custom player settings.
```csharp
using UnityEngine;
using UnityEditor;
// Simple Script that saves and loads custom
// Stand-alone/Web player screen settings among
/... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_14aef49467c4 | unity_docs | ui | What is `GUISkin.verticalScrollbarDownButton` in Unity? Explain its purpose and usage. | GUISkin.verticalScrollbarDownButton
public
GUIStyle
verticalScrollbarDownButton
;
Description
Style used by default for the down button on
GUI.VerticalScrollbar
controls.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Modifies only the vertical scrollbar
// down button of the curre... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0caff3963df7 | unity_docs | physics | What is `WheelFrictionCurve` in Unity? Explain its purpose and usage. | WheelFrictionCurve
struct in
UnityEngine
/
Implemented in:
UnityEngine.PhysicsModule
Description
WheelFrictionCurve is used by the
WheelCollider
to describe friction properties of the wheel tire.
The curve takes a measure of tire slip as an input and gives a force as output. The curve is approximated by
a two... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_21ce681b66f7 | unity_docs | scripting | What is `Mesh.MeshData.GetVertexAttributeStream` in Unity? Explain its purpose and usage. | Mesh.MeshData.GetVertexAttributeStream
Declaration
public int
GetVertexAttributeStream
(
Rendering.VertexAttribute
attr
);
Parameters
Parameter
Description
attr
The vertex data attribute to check for.
Returns
int
Stream index of the data attribute, or -1 if it is not present.
Description
Get the ve... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_9a5202113615 | unity_docs | performance | Explain 'Video transparency support' in Unity. | Unity’s
Video Clip and Video Player
components support alpha values in video files, also known as
transparency
.
This information covers the different types of transparent videos and how to set them up for use in Unity.
Topic Description Introduction to video transparency support in Unity
Discover the different types o... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_30d5c7755006 | unity_docs | scripting | What is `ColorGamutUtility` in Unity? Explain its purpose and usage. | ColorGamutUtility
class in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Utility class to query properties of a
ColorGamut
.
Static Methods
Method
Description
GetColorPrimaries
Returns the color primaries mapped to the color space used by the given gamut.
GetTransferFunction
Returns the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_9ba7bda32328 | github | scripting | Write a Unity Editor script for Android Manifest | ```csharp
using System.Collections.Generic;
using System.Xml;
using UnityEngine;
namespace MagicLeap.SetupTool.Editor.Utilities
{
internal class AndroidManifest : AndroidXmlDocument
{
private readonly XmlElement activityManifestElement;
private readonly XmlElement ApplicationElement;
private XmlNodeList ... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_296247981ab1 | unity_docs | scripting | What is `SceneAsset` in Unity? Explain its purpose and usage. | SceneAsset
class in
UnityEditor
/
Inherits from:
Object
Description
SceneAsset is used to reference Scene objects in the Editor.
This can be used as the type for ObjectField UI elements, to allow the user to pick a Scene object as the value of the field.
This example shows how to pick a Scene in the editor. The... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f39f3ba17b1c | unity_docs | editor | What is `iOS.Xcode.PBXProject.SetCompileFlagsForFile` in Unity? Explain its purpose and usage. | PBXProject.SetCompileFlagsForFile
Declaration
public void
SetCompileFlagsForFile
(string
targetGuid
,
string
fileGuid
,
List<string>
compileFlags
);
Parameters
Parameter
Description
targetGuid
The GUID of the target, such as the one returned by
TargetGuidByName
.
fileGuid
The GUID of the file.
compileF... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0b7e3a36149a | unity_docs | scripting | Show me a Unity C# example demonstrating `GUIUtility.ScreenToGUIPoint`. | (
Vector2
screenPoint
);
Description
Convert a point from screen space to GUI position.
Used for reconverting values calculated from
GUIToScreenPoint
Note:
In Unity the screen space
y
coordinate varies from zero at the top
edge of the window to a maximum at the bottom edge of the window. This is
different fr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ec0a0e70578d | unity_docs | editor | What is `BuildAssetBundleOptions.UncompressedAssetBundle` in Unity? Explain its purpose and usage. | BuildAssetBundleOptions.UncompressedAssetBundle
Description
Don't compress the data when creating the AssetBundle.
Uncompressed bundles are faster to build and load, but, because they are larger, take longer to download. Uncompressed AssetBundles are 16-byte aligned.
Additional resources:
AssetBundles compressio... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_929385b11565 | unity_docs | scripting | In Unity's 'Add class library references to .NET Framework', what is 'Create a response file' and how does it work? | To reference any other class library assemblies, you can create a response (.rsp) file with a list of command-line arguments to pass to the C# compiler as follows:
Create a file named
csc.rsp
in the Assets folder of your Unity project.
Move any assembly files you want to reference into the Assets folder of your project... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_074c6c390215 | github | scripting | Write a Unity C# MonoBehaviour script called Test Hierarchy Behaviour With Args | ```csharp
using UnityEngine;
namespace Duck.HierarchyBehaviour.Tests.Behaviours
{
[AddComponentMenu("")]
public class TestHierarchyBehaviourWithArgs : MonoBehaviour, IHierarchyBehaviour<string>
{
public string Args { get; private set; }
public bool DidInitialize { get; private set; }
public void I... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_24e5fe46ae38 | unity_docs | scripting | What is `TerrainTools.TerrainPaintTool_1.GetName` in Unity? Explain its purpose and usage. | TerrainPaintTool<T0>.GetName
Declaration
public string
GetName
();
Returns
string
Tool name.
Description
Retrieves the name of the custom terrain tool.
This function must be implemented. Unity calls this method to populate the terrain tool inspector.
To override a built-in tool with this one, you can pr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c660751fa477 | unity_docs | editor | What is `Search.SearchDocumentFlags` in Unity? Explain its purpose and usage. | SearchDocumentFlags
enumeration
Description
Search document flags are used by the indexing system to provide additional information of an indexed document, like its source.
Properties
Property
Description
None
Indicates no particular flags.
Asset
Indicates that the indexed document is an asset. So it should ha... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8996696752cb | unity_docs | rendering | What is `Rendering.BlendOp` in Unity? Explain its purpose and usage. | BlendOp
enumeration
Description
Blend operation.
The blend operation that is used to combine the pixel shader output with the render target. This can be passed through Material.SetInt() to change the blend operation during runtime.
Note that the logical operations are only supported in Gamma (non-sRGB) colorspace,... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_44d0126744d7 | unity_docs | editor | What is `SceneTemplate.InstantiationResult` in Unity? Explain its purpose and usage. | InstantiationResult
class in
UnityEditor.SceneTemplate
Description
A class that holds the data created when a
SceneTemplateAsset
is instantiated.
Properties
Property
Description
scene
The Scene that is created and loaded when a SceneTemplateAsset is instantiated.
sceneAsset
The SceneAsset that is created wh... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_10793eecdd36 | unity_docs | math | What is `Sprites.Packer.atlasNames` in Unity? Explain its purpose and usage. | Packer.atlasNames
public static string[]
atlasNames
;
Description
Array of Sprite atlas names found in the current atlas cache.
This list might change if the packing-tag on sprites are altered and repacked. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a1e9ee300c31 | unity_docs | ui | In Unity's 'Change events', what is 'Examples' and how does it work? | The following examples demonstrate the usage of ChangeEvent and how to set and get a control value.
To view an example, do the following:
Under
Assets
>
Scripts
>
Editor
, create a C# script called ChangeEventTestWindow.
Copy the example code into the C# script. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b21f2adc3342 | unity_docs | physics | What is `SimulationOption.IgnoreEmptyScenes` in Unity? Explain its purpose and usage. | SimulationOption.IgnoreEmptyScenes
Description
Define whether or not to skip the simulation if there are no active physics objects in the scene.
Skips the
SimulationStage.RunSimulation
stage if there are no active Rigidbodies, ArticulationBodies, or Colliders in the scene.
This option has no effect if the
Simula... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ec3c75c9b21d | unity_docs | rendering | Give me an overview of the `Vector2` class in Unity. | Vector2
struct in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Representation of 2D vectors and points.
This structure is used in some places to represent 2D positions and vectors (e.g. texture
coordinates in a
Mesh
or texture offsets in
Material
). In the majority of other cases a Vector... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5e554bdc0b68 | unity_docs | scripting | What is `Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle.GetReaderName` in Unity? Explain its purpose and usage. | AtomicSafetyHandle.GetReaderName
Declaration
public static string
GetReaderName
(
Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle
handle
,
int
readerIndex
);
Parameters
Parameter
Description
handle
The AtomicSafetyHandle to check.
readerIndex
Index of the reader.
Returns
string
The debug name of... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c9bf553bc681 | unity_docs | math | What is `Experimental.GraphView.StickyNote.ctor` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
StickyNote.StickyNote Constructor
Declaration
public
StickyNote
();
Declaration
public
StickyNote
(
Vector2
position
);
Declaration
public
StickyNote
(string
uiFile
,
Vector2
position
);
Parameters
Parameter
De... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5c391f80cbee | unity_docs | editor | What is `iOS.Xcode.PBXProject.GetBuildPhaseType` in Unity? Explain its purpose and usage. | PBXProject.GetBuildPhaseType
Declaration
public string
GetBuildPhaseType
(string
phaseGuid
);
Parameters
Parameter
Description
phaseGuid
GUID of the phase.
Returns
string
The type of the build phase.
Description
Returns the type of the build phase with the specified GUID.
The defined build phase typ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1fe85a819b51 | unity_docs | rendering | What is `TextureImporter.SetTextureSettings` in Unity? Explain its purpose and usage. | TextureImporter.SetTextureSettings
Declaration
public void
SetTextureSettings
(
TextureImporterSettings
src
);
Description
Sets texture importers settings from
TextureImporterSettings
class.
```csharp
using UnityEngine;
using UnityEditor;// Automatically convert any texture with "SingleChannel"
// in its p... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ac1a38dac262 | unity_docs | audio | In Unity's 'Audio Profiler module reference', what is 'Detailed view' and how does it work? | The Detailed view contains all the information in the Simple view, and additionally contains detailed per-frame logging of audio events. You can view these either as Channels ,
Groups
, or
Channels and Groups
. To open this view, open the dropdown at the top of the module details pane, select Detailed , and then select... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f8ae160be96b | unity_docs | scripting | Explain 'How Unity builds iOS applications' in Unity. | Unity uses Xcode to build iOS applications. You can use
iOS Player settings
to configure most aspects of the final build. However, for more granular control, building an Xcode project allows you to directly modify Xcode project files.
## The build process
Unity collects project resources, code libraries, and
plug-ins... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_44c5bda44bca | unity_docs | rendering | In Unity's 'Add a subshader in a custom shader', what is 'Example' and how does it work? | This example code demonstrates the syntax for creating a Shader object that contains a single SubShader, which in turn contains a single Pass.
```
Shader "Examples/SinglePass"
{
SubShader
{
Tags { "ExampleSubShaderTagKey" = "ExampleSubShaderTagValue" }
LOD 100
// ShaderLab commands that apply to the whole SubShad... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_5af5638b5848 | github | scripting | Write a Unity Editor script for Property Field | ```csharp
using UnityEditor;
using UnityEngine;
using System;
using System.Collections.Generic;
using System.Reflection;
using UnityPropertyInspector.Scripts;
using Object = UnityEngine.Object;
public static class ExposeProperties {
public static void Expose(PropertyField[] properties) {
GUILayoutOption[] emptyO... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.