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_775ac7104b93 | unity_docs | rendering | In Unity's 'Self-Illuminated Parallax Diffuse', what is 'Parallax Normal mapped Properties' and how does it work? | Parallax Normal mapped
is the same as regular
Normal mapped
, but with a better simulation of “depth”. The extra depth effect is achieved through the use of a
Height Map
. The Height Map is contained in the alpha channel of the
Normal map
. In the alpha, black is zero depth and white is full depth. This is most often u... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b1dcb5d2f44c | unity_docs | rendering | What is `Experimental.GraphView.TokenNode.highlighted` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
TokenNode.highlighted
public bool
highlighted
;
Description
Returns whether the TokenNode is highlighted. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c682aed92387 | unity_docs | math | Show me a Unity C# example demonstrating `Random.Range`. | g both minInclusive and maxInclusive
, will appear on average approximately once every ten million random samples.
There is an
int
overload of this function that operates slightly differently, especially regarding the range maximum. See its docs below.
See
Random
for details on the algorithm, and for examples of ho... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_92af1a8d6ed8 | unity_docs | input | Explain 'GUI Style (IMGUI System)' in Unity. | GUI Styles
are a collection of custom attributes for use with
IMGUI
. A single GUI Style defines the appearance of a single IMGUI
Control
.
If you want to add style to more than one control, use a
GUI Skin
instead of a GUI Style. For more information about IMGUI, please read the
GUI Scripting Guide
.
Please Note
: This... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_552b594563ea | unity_docs | scripting | Show me a Unity C# example demonstrating `Time.timeAsDouble`. | avoided:
Time.timeAsDouble
is intended to supply the length of time the application has been running for, and not the time per frame.
The value of
Time.timeAsDouble
is undefined during
Awake
messages and starts after all messages are finished.
Time.timeAsDouble
does not update if the Editor is paused.
See
Time... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_bda7c5948fb3 | unity_docs | rendering | In Unity's 'Smart merge', what is 'P4V' and how does it work? | Go to Preferences > Merge.
Select
Other application
.
Click the Add button.
In the extension field, type.unity
.
In the Application field, type the path to the UnityYAMLMerge tool (see above).
In the Arguments field, type
merge -p %b %1 %2 %r
Click Save.
Then, follow the same procedure to add the.prefab
extension. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e2b74830ded2 | unity_docs | editor | What is `PrefabInstanceStatus` in Unity? Explain its purpose and usage. | PrefabInstanceStatus
enumeration
Description
Enum with status about whether a Prefab instance is properly connected to its asset.
Properties
Property
Description
NotAPrefab
The object is not part of a Prefab instance.
Connected
The Prefab instance is connected to its Prefab Asset.
MissingAsset
The Prefab inst... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_addceeae57e0 | unity_docs | scripting | What is `SceneTemplate.SceneTemplateService.NewTemplateInstantiated` in Unity? Explain its purpose and usage. | SceneTemplateService.NewTemplateInstantiated
Declaration
public delegate void
NewTemplateInstantiated
(
SceneTemplate.SceneTemplateAsset
sceneTemplateAsset
,
SceneManagement.Scene
scene
,
SceneAsset
sceneAsset
,
bool
additiveLoad
);
Parameters
Parameter
Description
sceneTemplateAsset
The Scene templa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2fc98bd0e5ec | unity_docs | xr | What is `Experimental.GraphView.SearchWindowContext.requestedHeight` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
SearchWindowContext.requestedHeight
public float
requestedHeight
;
Description
Requested height of the window. Set to 0.0f to use the default height. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7f3a3580d9ef | unity_docs | scripting | Give me an overview of the `RequireComponent` class in Unity. | RequireComponent
class in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
The RequireComponent attribute automatically adds required components as dependencies.
When you add a script which uses RequireComponent to a GameObject, the required component is automatically added to the GameObject.
Th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0ad2370b4207 | unity_docs | input | What is `Playables.PlayableExtensions.GetInputCount` in Unity? Explain its purpose and usage. | PlayableExtensions.GetInputCount
Declaration
public static int
GetInputCount
(U
playable
);
Parameters
Parameter
Description
playable
The
Playable
used by this operation.
Returns
int
The count of inputs on the Playable.
Description
Returns the number of inputs supported by the
Playable
.
The inpu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d188686a1feb | unity_docs | scripting | Give me an overview of the `iOSLaunchScreenType` class in Unity. | iOSLaunchScreenType
enumeration
Description
iOS launch screen settings.
Properties
Property
Description
Default
Use the default launch screen (dark blue background).
ImageAndBackgroundRelative
Use a custom launch screen image specified in the iOS Player Settings or with PlayerSettings.iOS.SetLaunchScreenImage ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_632500b4f3cb | unity_docs | physics | What is `PhysicsVisualizationSettings.terrainTilesMax` in Unity? Explain its purpose and usage. | PhysicsVisualizationSettings.terrainTilesMax
public static int
terrainTilesMax
;
Description
Maximum number of mesh tiles available to draw all Terrain Colliders.
Lower this number if terrain drawing is too slow.
Additional resources:
TerrainCollider
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9fb966e70768 | unity_docs | scripting | What is `PlayerSettings.Android.androidIsGame` in Unity? Explain its purpose and usage. | Method group is Obsolete
PlayerSettings.Android.androidIsGame
Obsolete
androidIsGame has been deprecated. Please use appCategory instead.
public static bool
androidIsGame
;
Description
This property is obsolete. Use
PlayerSettings.Android.appCategory
instead. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bfe1ccfa9045 | unity_docs | editor | What are the parameters of `AssetPostprocessor.OnPostprocessAllAssets` in Unity? | Description This is called after importing of any number of assets is complete (when the Assets progress bar has reached the end). This call may occur after a manual reimport, or when you move an asset or a folder of assets to a new location in the Project window. Every string array item contains a file path relative t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_926d143c7c52 | unity_docs | editor | Show me a Unity C# example demonstrating `iOS.Xcode.PBXProject.AddTarget`. | tes a new native target.
Target-specific build configurations are automatically created for each known build configuration name. Note, that this is a requirement that follows from the structure of Xcode projects, not an implementation detail of this function.
The function creates a product file reference in the
Produ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_cf6e82c9dc50 | unity_docs | rendering | Show me a Unity code example for 'Search assets with the Project search provider'. | scripts from=prefab
Find prefabs that are missing scripts.
p: 7f64a6e091143c0458506b559165cf72
Find the asset with the GUID
7f64a6e091143c0458506b559165cf72
.
## Provider filters
The Project search provider supports the following filters.
## Types
Use the t filter to find all assets of a specific type in the Projec... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6db0f007a22d | unity_docs | scripting | What is `Unity.Android.Gradle.Dependencies.AddDependencyClasspathByName` in Unity? Explain its purpose and usage. | Dependencies.AddDependencyClasspathByName
Declaration
public
Unity.Android.Gradle.Element
AddDependencyClasspathByName
(string
name
);
Parameters
Parameter
Description
name
Classpath name.
Returns
Element
The added dependency.
Description
Adds a depenency by classpath name. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a87679e87726 | unity_docs | ui | What is `iOS.Device.hideHomeButton` in Unity? Explain its purpose and usage. | Device.hideHomeButton
public static bool
hideHomeButton
;
Description
Specifies whether the home button should be hidden in the iOS build of this application.
On iPhone X the home button is implemented as a system gesture (swipe up from the bottom edge of the screen).
The location of this virtual button is indi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c4a3dc771381 | unity_docs | math | What is `IMGUI.Controls.PrimitiveBoundsHandle.ctor` in Unity? Explain its purpose and usage. | PrimitiveBoundsHandle Constructor
Declaration
public
PrimitiveBoundsHandle
();
Obsolete
Use parameterless constructor instead.
Declaration
public
PrimitiveBoundsHandle
(int
controlIDHint
);
Parameters
Parameter
Description
controlIDHint
An integer value used to generate consistent control IDs for each... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ef84f6572df2 | unity_docs | scripting | What is `ChangeGameObjectStructureHierarchyEventArgs.ctor` in Unity? Explain its purpose and usage. | ChangeGameObjectStructureHierarchyEventArgs Constructor
Declaration
public
ChangeGameObjectStructureHierarchyEventArgs
(int
instanceId
,
SceneManagement.Scene
scene
);
Parameters
Parameter
Description
instanceId
The instance ID of the
GameObject
that has been changed.
scene
The
Scene
containing the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_23f61522a7f7_doc_0 | github | scripting | What does `RightHand2UnityLeftHand` do in this Unity script? Explain its purpose and signature. | runtime右手坐标系结果转换成Unity左手系结果旋转, 四元数, [x,y,z,w]平移
Signature:
```csharp
static public void RightHand2UnityLeftHand(float[] rotation, float[] position)
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_bf295471129a | unity_docs | rendering | What is `TerrainData.GetAlphamaps` in Unity? Explain its purpose and usage. | TerrainData.GetAlphamaps
Declaration
public float[,,]
GetAlphamaps
(int
x
,
int
y
,
int
width
,
int
height
);
Parameters
Parameter
Description
x
The x offset to read from.
y
The y offset to read from.
width
The width of the alpha map area to read.
height
The height of the alpha map area to read.
Re... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c96c3b3aef0d | unity_docs | editor | What is `EditorAssembliesCompatibilityLevel` in Unity? Explain its purpose and usage. | EditorAssembliesCompatibilityLevel
enumeration
Description
.NET API compatibility level.
Properties
Property
Description
Default
The Default is equivalent to NET_Unity_4_8.
NET_Unity_4_8
Profile that targets the .NET Framework 4.8 + Unity additions.
NET_Standard
Profile that targets .NET Standard 2.1. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6ae6a8e24d3f | unity_docs | scripting | What is `ISubsystem` in Unity? Explain its purpose and usage. | ISubsystem
interface in
UnityEngine
Description
Interface implemented by both Subsystem and
IntegratedSubsystem
which provides control over the state of either.
Properties
Property
Description
running
Will be true if asking the subsytem to start was successful. False in the case that the subsystem has stop... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_11bd0f9a85c4 | unity_docs | scripting | What is `Search.SearchContext` in Unity? Explain its purpose and usage. | SearchContext
class in
UnityEditor.Search
Implements interfaces:
ISerializationCallbackReceiver
Description
The search context includes all the data necessary to perform a query. It allows the full customization of how a query may be performed.
Properties
Property
Description
empty
Indicates of the search que... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_7ce4e4b1a018 | unity_docs | rendering | In Unity's 'Upgrade to Unity 2021 LTS', what is 'Device Simulator' and how does it work? | The
Device Simulator
is now part of the Editor and is accessible from the Game window.
To set up the Device Simulator, add the
UnityEngine.Device
namespace to the Screen, Application, and SystemInfo classes:
UnityEngine.Device.Screen;
UnityEngine.Device.Application;
UnityEngine.Device.SystemInfo;
To switch to
UnityEngi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b7ef4bfcd7b0 | unity_docs | xr | What is `PackageManager.Requests.RemoveRequest` in Unity? Explain its purpose and usage. | RemoveRequest
class in
UnityEditor.PackageManager.Requests
/
Inherits from:
PackageManager.Requests.Request
Description
Represents an asynchronous request to remove a package from the project.
The PackageManager
Client
class returns a RemoveRequest instance when you call the
Client.Remove
method to remove ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_21cd26647b65 | unity_docs | rendering | Show me a Unity C# example demonstrating `TextureImporter.SetTextureSettings`. | 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_sr_6ffd74a611a2 | unity_docs | physics | What is `PlayerSettings.forceSingleInstance` in Unity? Explain its purpose and usage. | PlayerSettings.forceSingleInstance
public static bool
forceSingleInstance
;
Description
Restrict standalone players to a single concurrent running instance.
This detects at startup whether another instance of the same player is already running,
and aborts with an error message if so. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_28fae26805a7 | unity_docs | scripting | Explain 'Configure mesh compression' in Unity. | To use the Mesh Compression
setting:
Select a Model in your project’s Assets folder to open the Model tab of the Import Settings window.
Navigate to the Meshes heading and find the Mesh Compression setting.
Select the dropdown menu to choose a level for all meshes in that Model. You can also change this setting in code... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f7a3072d9669 | unity_docs | rendering | In Unity's 'SpeedTree Model tab reference', what is 'Meshes' and how does it work? | Property Description Unit Conversion
Apply a global scale to the imported SpeedTree model. The following options are available:
Leave As Is
- Don’t apply any unit conversion. Interpret the values in the model file as meters.
ft to m
- Convert from feet to meters.
cm to m
- Convert from centimeters to meters.
inch to m
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4abdbf60f0a7 | unity_docs | scripting | What is `Unity.Properties.PropertyPath.AppendProperty` in Unity? Explain its purpose and usage. | PropertyPath.AppendProperty
Declaration
public static
Unity.Properties.PropertyPath
AppendProperty
(ref
Unity.Properties.PropertyPath
path
,
Unity.Properties.IProperty
property
);
Parameters
Parameter
Description
path
The <see cref="PropertyPath" />
property
The property to add.
Returns
PropertyPa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c4fd87f155b1 | unity_docs | animation | Explain '2D PSD Importer' in Unity. | com.unity.2d.psdimporter
## Description
A ScriptedImporter for importing Adobe Photoshop PSB (Photoshop Big) file format. The ScriptedImporter is currently targeted for users who wants to create multi Sprite character animation using Unity 2D Animation Package.
## Released for Unity
Package version 9.1.1 is release... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_10c7d54d584c | unity_docs | scripting | Explain 'RectIntField' in Unity. | The RectIntField lets users enter a RectInt value in a UI.
Note
: To align an element with other fields in an Inspector window, simply apply the.unity-base-field__aligned
USS class to it. For more information, refer to
BaseField
.
## Create a RectIntField
You can create a RectIntField with UI Builder, UXML, or C#. Th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_91a9a5e40efc | unity_docs | scripting | What is `Unity.Properties.Property_2.AddAttributes` in Unity? Explain its purpose and usage. | Property<T0,T1>.AddAttributes
Declaration
protected void
AddAttributes
(IEnumerable<Attribute>
attributes
);
Parameters
Parameter
Description
attributes
The attributes to add.
Description
Adds a set of attributes to the property. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_19571a6ff707 | unity_docs | rendering | Show me a Unity C# example demonstrating `AMD.AMDUnityPlugin`. | ensions.
When using this API manually, it's good practice to verify that the plugin is available using
AMDUnityPlugin.IsLoaded
.
In case the plugin fails to load automatically (for example, the end user isn't using the native AMD package), you can load it manually using
AMDUnityPlugin.Load
.
Additional resources: ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_041d57333042 | unity_docs | scripting | What is `Unity.Properties.TypeTraits.IsContainer` in Unity? Explain its purpose and usage. | TypeTraits.IsContainer
Declaration
public static bool
IsContainer
(Type
type
);
Parameters
Parameter
Description
type
The type to test.
Returns
bool
true
if the given type is a container type;
false
otherwise.
Description
Returns
true
if the given type can be treated as a container. i.e. not pri... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_a87e55132c36 | github | scripting | Write a Unity Editor script for Enum Flags Attribute Drawer | ```csharp
#region Using statements
using UnityEditor;
using UnityEngine;
#endregion
namespace Bitgem.Editor
{
[CustomPropertyDrawer(typeof(Core.FlagEnumAttribute))]
public class EnumFlagsAttributeDrawer : PropertyDrawer
{
public override void OnGUI(Rect _position, SerializedProperty _property, G... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_44215b84cb5a | unity_docs | editor | What is `Unity.Profiling.LowLevel.Unsafe.ProfilerRecorderDescription` in Unity? Explain its purpose and usage. | ProfilerRecorderDescription
struct in
Unity.Profiling.LowLevel.Unsafe
/
Implemented in:
UnityEngine.CoreModule
Description
Gets the description of a Profiler metric.
Provides information about Profiler metrics that are accessible with the
ProfilerRecorder
.
Use
Name
and
Category
to create an instance of
P... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_835c58d11eb6 | unity_docs | scripting | Show me a Unity C# example demonstrating `GridLayout.CellToLocalInterpolated`. | GridLayout.CellToLocalInterpolated
Declaration
public
Vector3
CellToLocalInterpolated
(
Vector3
cellPosition
);
Parameters
Parameter
Description
cellPosition
Interpolated cell position to convert.
Returns
Vector3
Local position of the cell position.
Description
Converts an interpolated cell positi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_fb93052b574f | unity_docs | xr | Explain 'Define exceptions on your web proxy' in Unity. | One of the uses for a web proxy is to filter and block certain websites. However, there are situations where an administrator needs to allow certain websites or URLs through the web proxy without authentication.
Administrators define these exceptions in an exception list, which identifies approved or allowed websites t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ddd2f0d8b64e | unity_docs | scripting | Explain 'ColorField' in Unity. | A ColorField is an
Editor-only
control that lets users select a color from a color picker. It supports alpha channel and
HDR colors
. An alpha channel is an extra channel to represent the transparency level of a color.
HDR
colors are high-dynamic range colors that can represent a wider range of colors than standard col... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c9df15bf806e | unity_docs | ui | Show me a Unity C# example demonstrating `Overlays.ICreateToolbar.toolbarElements`. | ICreateToolbar.toolbarElements
public IEnumerable<string>
toolbarElements
;
Description
List of
toolbarElements
IDs to show when the
Overlay
is in a toolbar layout.
```csharp
using System.Collections.Generic;
using UnityEditor;
using UnityEditor.Overlays;
using UnityEditor.Toolbars;
using UnityEngine;
using... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cf9ecbc1e091 | unity_docs | scripting | What is `TerrainData.maxDetailScatterPerRes` in Unity? Explain its purpose and usage. | TerrainData.maxDetailScatterPerRes
public int
maxDetailScatterPerRes
;
Description
The maximum value of each sample in the detail map of the terrain data.
This value will depend on the set
DetailScatterMode
. In
CoverageMode
, values of up to 255 are stored.
In
InstanceCountMode
, values of up to 16 are sto... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ca4e8464e8b6 | unity_docs | editor | What is `SearchService.ISelectorEngine.SelectObject` in Unity? Explain its purpose and usage. | ISelectorEngine.SelectObject
Declaration
public bool
SelectObject
(
SearchService.ISearchContext
context
,
Action<Object,bool>
onObjectSelectorClosed
,
Action<Object>
onObjectSelectedUpdated
);
Parameters
Parameter
Description
context
The search context.
onObjectSelectorClosed
Callback to call when the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_88f1c62b8372 | unity_docs | scripting | What is `Unity.IO.LowLevel.Unsafe.AsyncReadManagerMetrics.GetCurrentSummaryMetrics` in Unity? Explain its purpose and usage. | AsyncReadManagerMetrics.GetCurrentSummaryMetrics
Declaration
public static
Unity.IO.LowLevel.Unsafe.AsyncReadManagerSummaryMetrics
GetCurrentSummaryMetrics
(
Unity.IO.LowLevel.Unsafe.AsyncReadManagerMetrics.Flags
flags
);
Parameters
Parameter
Description
flags
Flags to control the behavior, including clea... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9416c8866ffd | unity_docs | physics | Show me a Unity C# example demonstrating `AssetDatabase.MakeEditable`. | nothing.
When using a version control system, for example Perforce Helix,
MakeEditable
triggers a "Checkout" operation
on the files, unless they are already editable. For files that were not added to version control yet,
MakeEditable/
will add them to version control.
If you set up a pre-checkout callback, Unity ca... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_aae0c833feb8 | unity_docs | rendering | What is `Rendering.RenderPipelineAsset.renderPipelineShaderTag` in Unity? Explain its purpose and usage. | RenderPipelineAsset.renderPipelineShaderTag
public string
renderPipelineShaderTag
;
Returns
string
String with the Shader Tag.
Description
Returns the Shader Tag value for the render pipeline that is described by this asset.
Any shader that doesn't match this tag will be stripped out of builds using this ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7051b8e0de08 | unity_docs | rendering | What is `Material.GetTexturePropertyNames` in Unity? Explain its purpose and usage. | Material.GetTexturePropertyNames
Declaration
public string[]
GetTexturePropertyNames
();
Declaration
public void
GetTexturePropertyNames
(List<string>
outNames
);
Parameters
Parameter
Description
outNames
Names of all texture properties exposed on this material.
Returns
string[]
Names of all texture... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_523fd90a152b | unity_docs | xr | Explain 'Decentralized technology Verified Solutions' in Unity. | Due to the intricate nature of blockchain technologies that are often present in decentralized technologies, the Verified Solution vetting process for decentralized technology products includes all program criteria, and the following additional checks that are specific to these types of solutions:
Environmental impact ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e8721f671438 | unity_docs | physics | What is `IMGUI.Controls.JointAngularLimitHandle.fillAlpha` in Unity? Explain its purpose and usage. | JointAngularLimitHandle.fillAlpha
public float
fillAlpha
;
Description
Returns or specifies the opacity to use when rendering fill shapes for the range of motion for each axis. Defaults to 0.1.
This value is multiplied with the value of the color for the axis being drawn, which is multiplied with the value of
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_209394e01e85 | unity_docs | scripting | Explain 'Enter Play mode with domain reload disabled' in Unity. | The scripting domain, also known as the
application domain
, or simply domain, is a core feature of Unity’s managed scripting environment. The domain is an isolated section of memory dedicated to a particular application, which contains the compiled types required by the application, grouped into logical units called
a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bd7dcb4ae3e1 | unity_docs | editor | What is `EditorApplication.CallbackFunction` in Unity? Explain its purpose and usage. | EditorApplication.CallbackFunction
Declaration
public delegate void
CallbackFunction
();
Description
Delegate to be called from
EditorApplication
callbacks.
CallbackFunction is used by
EditorApplication.update
,
EditorApplication.modifierKeysChanged
, EditorApplication.playmodeStateChanged, and
EditorApplic... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9fa9f63ee86e | unity_docs | editor | Show me a Unity C# example demonstrating `Search.SearchProvider.startDrag`. | SearchProvider.startDrag
public Action<SearchItem,SearchContext>
startDrag
;
Description
If implemented, the item supports drag. It is up to the SearchProvider to properly set up the DragAndDrop manager.
```csharp
[SearchItemProvider]
internal static SearchProvider CreateProvider()
{
return new SearchProvider(... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_7677a2b57b87 | unity_docs | scripting | In Unity's 'ToolbarSpacer', what is 'Create a ToolbarSpacer' and how does it work? | You can create a ToolbarSpacer with UI Builder, UXML, or C#. The following C# example creates a ToolbarSpacer:
```csharp
using UnityEditor.UIElements;
...
var toolbarSpacer = new ToolbarSpacer();
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4a92d7d74ab9 | unity_docs | editor | What are the parameters of `iOS.Xcode.PBXProject.RemoveBuildConfig` in Unity? | Description Removes all build configurations with the given name from all targets in the project. The number and names of the build configurations is a project-wide setting. Each target has the same number of build configurations and the names of these build configurations is the same. The function does nothing if the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_277e9a910d70 | unity_docs | scripting | What is `Events.UnityEventTools.RegisterBoolPersistentListener` in Unity? Explain its purpose and usage. | UnityEventTools.RegisterBoolPersistentListener
Declaration
public static void
RegisterBoolPersistentListener
(
Events.UnityEventBase
unityEvent
,
int
index
,
UnityAction<bool>
call
,
bool
argument
);
Parameters
Parameter
Description
unityEvent
Event to modify.
index
Index to modify.
call
Function to ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4117d477cecc | unity_docs | animation | What is `AnimationClip.legacy` in Unity? Explain its purpose and usage. | AnimationClip.legacy
public bool
legacy
;
Description
Set to true if the AnimationClip will be used with the Legacy Animation component ( instead of the Animator ).
```csharp
using UnityEngine;
using System.Collections;public class animFov : MonoBehaviour
{
void Start()
{
AnimationClip fovc = new AnimationC... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_203435d69de9 | unity_docs | editor | Explain 'Scenes' in Unity. | Use scenes to assemble and organize all the content of your project. Each scene contains its own collection of GameObjects. Whether you’re building a single level, a menu screen, or an entire game world, scenes provide the structure to organize and manage your content effectively.
Topic Description Introduction to scen... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_9e0da77523f0 | unity_docs | editor | In Unity's 'Tooltip event', what is 'TooltipEvent' and how does it work? | The TooltipEvent is sent just before the Unity Editor displays a tooltip. The handler should set the
TooltipEvent.tooltip
string and the
TooltipEvent.rect
.
target
: The visual element under the mouse. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a0753d5e2258 | unity_docs | animation | Explain 'In-game time and real time' in Unity. | The
Time.timeScale
property defines the rate at which time passes in your game world relative to real time. A
Time.timeScale
value of 1.0 means your in-game time matches real time. A value of 2.0 makes time pass twice as quickly in your game as in the real world, which speeds up the action in your game. A value of 0.5 ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b729026fcc7a | unity_docs | rendering | What is `RenderTexture.depth` in Unity? Explain its purpose and usage. | RenderTexture.depth
public int
depth
;
Description
The precision of the render texture's depth buffer in bits (0, 16, 24 and 32 are supported).
Set the format of the Depth/Stencil buffer. The selected format depends on the available formats on the platform and the desired format for 24bit depth. See
GraphicsF... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0c5b57f4397b | unity_docs | scripting | What is `Experimental.GraphView.Placemat` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
Placemat
class in
UnityEditor.Experimental.GraphView
/
Inherits from:
Experimental.GraphView.GraphElement
Description
Allows interactive manipulation of elements (drag, hide) over a virtual placemat.
Properties
Property
De... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_aea80b9c38a2 | unity_docs | scripting | What are the parameters of `EditorUtility.CollectDeepHierarchy` in Unity? | Returns Object[] Array of objects heirarchically attached to the search array. Description Collect all objects in the hierarchy rooted at each of the given objects. This is most useful for linearizing entire GameObject hierarchies including all their components. Note that the traversal will not include assets reference... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ced947dc269e | unity_docs | animation | What is `AnimatedValues.AnimBool.Fade` in Unity? Explain its purpose and usage. | AnimBool.Fade
Declaration
public float
Fade
(float
from
,
float
to
);
Parameters
Parameter
Description
from
Value to lerp from.
to
Value to lerp to.
Description
Returns a value between from and to depending on the current value of the bools animation. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e47fa3ca3d87 | unity_docs | scripting | Show me a Unity C# example demonstrating `EditorGUI.Vector4Field`. | tor4
Vector4Field
(
Rect
position
,
string
label
,
Vector4
value
);
Parameters
Parameter
Description
position
Rectangle on the screen to use for the field.
label
Label to display above the field.
value
The value to edit.
Returns
Vector4
The value entered by the user.
Description
Makes an X, Y... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fd346c2802de | unity_docs | rendering | What is `Experimental.Rendering.ShaderWarmupSetup.vdecl` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
ShaderWarmupSetup.vdecl
public VertexAttributeDescriptor[]
vdecl
;
Description
The vertex data layout to use when prewarming shader variants.
For information on shader loading and prewarming, including a list of different pr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_86d8dfb187b9 | unity_docs | physics | What is `Handheld` in Unity? Explain its purpose and usage. | Handheld
class in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Interface into functionality unique to handheld devices.
This class is available on Android and iOS.
Static Methods
Method
Description
GetActivityIndicatorStyle
Gets the current activity indicator style.
PlayFullScreenMovie
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_812ac407732b | unity_docs | rendering | What is `MaterialProperty.PropFlags` in Unity? Explain its purpose and usage. | PropFlags
enumeration
Description
Flags that control how a
MaterialProperty
is displayed.
Properties
Property
Description
None
No flags are set.
HideInInspector
Do not show the property in the Inspector.
PerRendererData
In the Material Inspector, value for this property will be queried from Renderer's Mater... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5d14021934a7 | unity_docs | rendering | Explain 'QNX build settings reference' in Unity. | Use the QNX build settings to configure and build your application for the QNX platform. The QNX build settings are included in the
Platform Settings
section of the
Build Profiles window
.
Property Description QNX Version
The target OS version for QNX is automatically detected depending on the QNX environment. For exam... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1df06432da62 | unity_docs | scripting | What is `Video.VideoPlayer.prepareCompleted` in Unity? Explain its purpose and usage. | VideoPlayer.prepareCompleted
Parameters
Parameter
Description
value
The instance of the VideoPlayer that invoked the event.
Description
The
VideoPlayer
invokes this event when the video is ready for playback.
The
VideoPlayer
uses
VideoPlayer.Prepare
to ready a video for playback. When the preparation fin... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e8e99c630532 | unity_docs | scripting | Give me an overview of the `AddComponentMenu` class in Unity. | AddComponentMenu
class in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
The AddComponentMenu attribute allows you to place a script anywhere in the "Component" menu, instead of just the "Component->Scripts" menu.
You can use this to organize the Component menu better and improve the workflow ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f6c72d4d9407 | unity_docs | physics | What is `ParticleSystemForceFieldShape` in Unity? Explain its purpose and usage. | ParticleSystemForceFieldShape
enumeration
Description
The type of shape used for influencing particles in the Force Field Component.
Properties
Property
Description
Sphere
Influence particles inside a sphere shape.
Hemisphere
Influence particles inside a hemisphere shape.
Cylinder
Influence particles inside a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_9d02febe308a | unity_docs | rendering | In Unity's 'Reduce aliasing with AlphaToMask mode', what is 'Examples' and how does it work? | ```
Shader "Examples/CommandExample"
{
SubShader
{
// The rest of the code that defines the SubShader goes here.
Pass
{
// Enable alpha-to-coverage mode for this Pass
AlphaToMask On
// The rest of the code that defines the Pass goes here.
}
}
}
```
This example code demonstrates the syntax for using this ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c619cb0294ad | unity_docs | scripting | Show me a Unity C# example demonstrating `SystemLanguage.French`. | SystemLanguage.French
Description
French.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
//This checks if your computer's operating system is in the French language
if (Application.systemLanguage == SystemLanguage.French)
{
//Outputs into console that the system is French
D... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_cfbf43b9d590 | unity_docs | rendering | Explain 'Optimize shaders' in Unity. | This page contains information on optimizing your shaders for runtime performance, especially on mobile platforms that have limited GPU performance.
## Avoid complex calculations
To avoid complex calculations, do the following for example:
Use lookup textures instead of resource-intensive functions such as pow ,
log ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_015b685c1872 | unity_docs | math | Give me an overview of the `Mathf` class in Unity. | Mathf
struct in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
A collection of common math functions.
Static Properties
Property
Description
Deg2Rad
Degrees-to-radians conversion constant (Read Only).
Epsilon
The smallest positive non-zero value that a float can represent. Using Mathf.Eps... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c1a7559483f9 | unity_docs | input | What is `Build.Content.ContentBuildInterface.CalculatePlayerDependenciesForScene` in Unity? Explain its purpose and usage. | ContentBuildInterface.CalculatePlayerDependenciesForScene
Declaration
public static
Build.Content.SceneDependencyInfo
CalculatePlayerDependenciesForScene
(string
scenePath
,
Build.Content.BuildSettings
settings
,
Build.Content.BuildUsageTagSet
usageSet
);
Declaration
public static
Build.Content.SceneDep... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a42d5973493a | unity_docs | scripting | What is `UIElements.SearchFieldBase_2.SetValueWithoutNotify` in Unity? Explain its purpose and usage. | SearchFieldBase<T0,T1>.SetValueWithoutNotify
Declaration
public void
SetValueWithoutNotify
(T
newValue
);
Description
Sets the value for the toolbar search field without sending a change event. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0ff678a70b61 | unity_docs | scripting | What is `ObjectChangeEventStream.Clone` in Unity? Explain its purpose and usage. | ObjectChangeEventStream.Clone
Declaration
public
ObjectChangeEventStream
Clone
(
Unity.Collections.Allocator
allocator
);
Parameters
Parameter
Description
allocator
The allocator to use to allocate the memory for the copy.
Returns
ObjectChangeEventStream
A copy of the stream that contains the same eve... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fdf3c1c983cd | unity_docs | rendering | What is `TextureImporterPlatformSettings.name` in Unity? Explain its purpose and usage. | TextureImporterPlatformSettings.name
public string
name
;
Description
Name of the build target.
Refer to
NamedBuildTarget
for a list of valid build targets. To get the name of a build target as a string, use the
TargetName
property. For example,
UnityEditor.Build.NamedBuildTarget.Standalone.TargetName
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c83b696badbd | unity_docs | scripting | In Unity's 'Remove imported assets from a project', what is 'Procedure' and how does it work? | To remove imported assets from your project:
Open your project.
Open the
Package Manager
window and select
My Assets or In Project
from the
navigation panel
.
Select the asset package whose assets you want to remove from your project.
Open the menu in the top right corner of the
details panel
.
The action menu in Packa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_19d4e3d664f8 | unity_docs | editor | Show me a Unity C# example demonstrating `PlayerSettings.Android.fullscreenMode`. | PlayerSettings.Android.fullscreenMode
public static
FullScreenMode
fullscreenMode
;
Description
The display mode for Android Player builds of your application.
Android supports
FullScreenMode.Windowed
and
FullScreenMode.FullScreenWindow
. For more information, refer to
FullScreenMode
```csharp
using Uni... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e9820c1fc936 | unity_docs | rendering | What is `Texture2D.streamingMipmapsPriority` in Unity? Explain its purpose and usage. | Texture2D.streamingMipmapsPriority
public int
streamingMipmapsPriority
;
Description
Sets the relative priority for this Texture when reducing memory size to fit within the memory budget.
When mipmap streaming is enabled, Unity automatically reduces the size of Textures until they fit into the Texture streaming... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_795200a7b5b1 | unity_docs | rendering | What are the parameters of `Resources.LoadAll` in Unity? | Description Loads all assets in a folder or file at path in a Resources folder. If path refers to a folder, all assets in the folder will be returned.
If path refers to a file, only that asset will be returned.
The path is relative to any Resources folder inside the Assets folder of your project. Note: All asset names ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c0232888f054 | unity_docs | rendering | What is `Rendering.ShaderKeyword.ctor` in Unity? Explain its purpose and usage. | ShaderKeyword Constructor
Declaration
public
ShaderKeyword
(string
keywordName
);
Parameters
Parameter
Description
keywordName
The name of the keyword.
Description
Initializes a new instance of the ShaderKeyword class from a shader global keyword name.
If you call this function and a keyword with the name... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e74124a9fc2c | unity_docs | scripting | What is `PlayerPrefs.HasKey` in Unity? Explain its purpose and usage. | PlayerPrefs.HasKey
Declaration
public static bool
HasKey
(string
key
);
Description
Returns true if the given
key
exists in PlayerPrefs, otherwise returns false.
The following example demonstrates using PlayerPrefs.HasKey in a conditional statement. It prints one message to the console if the conditional sta... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_90f30a38804a | unity_docs | scripting | What is `UIElements.Experimental.StyleValues.flexShrink` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
StyleValues.flexShrink
public float
flexShrink
;
Description
Specifies how the item will shrink relative to the rest of the flexible items inside the same container. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0efdd088b30f | unity_docs | rendering | What is `SystemInfo.maxComputeBufferInputsHull` in Unity? Explain its purpose and usage. | SystemInfo.maxComputeBufferInputsHull
public static int
maxComputeBufferInputsHull
;
Description
Determines how many compute buffers Unity supports simultaneously in a hull shader for reading. (Read Only) | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_3119aebffdd3_doc_0 | github | scripting | What does `CanStartTrigger` do in this Unity script? Explain its purpose and signature. | / -------------------------------------------------------------------------------------------/ Methods/ -------------------------------------------------------------------------------------------
Signature:
```csharp
public virtual bool CanStartTrigger()
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_815a669bde7a | unity_docs | editor | Give me an overview of the `MeshUtility` class in Unity. | MeshUtility
class in
UnityEditor
Description
Various utilities for mesh manipulation.
Static Methods
Method
Description
AcquireReadOnlyMeshData
Gets a snapshot of Mesh data for read-only access in the Unity Editor.
GetMeshCompression
Returns the mesh compression setting for a Mesh.
Optimize
Optimizes the Mes... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ee58287b1567 | unity_docs | rendering | In Unity's 'Create a cubemap', what is 'Legacy Cubemap Assets' and how does it work? | Unity also supports creating cubemaps out of six separate
textures
.
Select
Assets
>
Create
>
Rendering
>
Legacy Cubemap
from the menu,
and drag six textures into empty slots in the inspector.
Property:
Function:
Right..Back Slots
Textures for the corresponding cubemap face.
Face Size
Width and Height of each Cubemap f... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_107f86e9b59f | unity_docs | rendering | What is `LightingSettings.aoMaxDistance` in Unity? Explain its purpose and usage. | LightingSettings.aoMaxDistance
public float
aoMaxDistance
;
Description
The distance that a ray travels before Unity considers it to be unoccluded when calculating ambient occlusion in lightmaps. (Editor only).
Ambient occlusion (AO) is an effect that approximates how much ambient light a given point on a surf... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3cea4851e79d | unity_docs | scripting | What is `ParticleSystem.MainModule.startSizeMultiplier` in Unity? Explain its purpose and usage. | ParticleSystem.MainModule.startSizeMultiplier
public float
startSizeMultiplier
;
Description
A multiplier for the initial size of particles when the Particle System first spawns them.
Changing this property is more efficient than accessing the entire curve, if you only want to change the overall size multiplie... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_802de1d5217a | unity_docs | scripting | What is `Rendering.CommandBufferExtensions` in Unity? Explain its purpose and usage. | CommandBufferExtensions
class in
UnityEngine.Rendering
/
Implemented in:
UnityEngine.CoreModule
Description
Static class providing extension methods for
CommandBuffer
.
The extension methods in this class can directly be used on an
CommandBuffer
.
Static Methods
Method
Description
SwitchIntoFastMemory
Add... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1441907e3759 | unity_docs | rendering | What is `ModelImporter.minBoneWeight` in Unity? Explain its purpose and usage. | ModelImporter.minBoneWeight
public float
minBoneWeight
;
Description
Minimum bone weight to keep.
Bone weights lower than this value will be discarded, unless they are the largest weight for a vertex. Trimming insignificant weights may improve performance. A value of 1.0 means fully weighted.
Additional resourc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_745ba6d07993 | unity_docs | math | Show me a Unity C# example demonstrating `Plane.SetNormalAndPosition`. | Plane.SetNormalAndPosition
Declaration
public void
SetNormalAndPosition
(
Vector3
inNormal
,
Vector3
inPoint
);
Parameters
Parameter
Description
inNormal
The plane's normal vector.
inPoint
A point that lies on the plane.
Description
Sets a plane using a point that lies within it along with a normal t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_69a02b15a104 | unity_docs | physics | What are the parameters of `Physics2D.OverlapCapsule` in Unity? | Returns Collider2D The Collider overlapping the capsule. Description Checks if a Collider falls within a capsule area. The capsule is defined by its center coordinate in world space, its size, direction and angle. The optional layerMask allows the test to check only for objects on specific layers. Although the Z axis i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ae6945cbedad | unity_docs | scripting | What is `UIElements.PointerUpEvent.ctor` in Unity? Explain its purpose and usage. | PointerUpEvent Constructor
Declaration
public
PointerUpEvent
();
Description
Constructor. Avoid creating new event instances. Instead, use GetPooled() to get an instance from a pool of reusable event instances. | 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.