کانال تخصصی یونیتی ( آموزش و نکته )


Channel's geo and language: Iran, Persian
Category: Technologies


به نام خدا
مسئولیت مطالب یا آگهی ارسالی در کانال یا کامنت ها به عهده من یا ما نیست
لیست گروه ها و...
https://t.me/UnityEngine3D/823
برای تبلیغ در کانال و گروه :
https://t.me/UnityEngine3DAds
مدیر اصلی(مالک)
@UnityEngine

Related channels  |  Similar channels

Channel's geo and language
Iran, Persian
Statistics
Posts filter


Add this code to your Editor folder and it will save your scene everytime you press play!
حداقل اگه برق رفت مشکلی پیش نیاد

using UnityEngine;
using UnityEditor;
using UnityEditor.SceneManagement;

[InitializeOnLoad]
public class AutoSaveOnRunMenuItem
{
public const string MenuName = "Tools/Autosave On Run";
private static bool isToggled;

static AutoSaveOnRunMenuItem()
{
EditorApplication.delayCall += () =>
{
isToggled = EditorPrefs.GetBool(MenuName, false);
UnityEditor.Menu.SetChecked(MenuName, isToggled);
SetMode();
};
}

[MenuItem(MenuName)]
private static void ToggleMode()
{
isToggled = !isToggled;
UnityEditor.Menu.SetChecked(MenuName, isToggled);
EditorPrefs.SetBool(MenuName, isToggled);
SetMode();
}

private static void SetMode()
{
if(isToggled)
{
EditorApplication.playModeStateChanged += AutoSaveOnRun;
}
else
{
EditorApplication.playModeStateChanged -= AutoSaveOnRun;
}
}

private static void AutoSaveOnRun(PlayModeStateChange state)
{
if (EditorApplication.isPlayingOrWillChangePlaymode && !EditorApplication.isPlaying)
{
Debug.Log("Auto-Saving before entering Play mode");

EditorSceneManager.SaveOpenScenes();
AssetDatabase.SaveAssets();
}
}
}



#نکته #یونیتی


👉 @UnityEngine3D 👈


با این پروژه میتونید کد یونیتی رو برای PS2 خروجی بگیرید

https://github.com/distrohelena/ps2unity

خواستید یه نگاه بهش بندازید

Features:

- 3D Models
- Camera
- Lights
- Tesselation: Big triangles on the PS2 get easily culled, so we can tesselate to make them smaller.
- Lightmaps: We extract the lightmaps, and convert from HDR to SDR with a specific exposure.
- Code Conversion: C# to C++ code conversion (very rudimentary, but does work). Requires manually building the output code inside the ps2engine project.
- DirectX Windows version: Debug on Windows, the C++ version of the engine is cross-platform, and just loads different renderers based on the platform.

484 0 20 31 4

کسی بازی ماشینی انتشار داده ، اگه دادید چقدر درآمد دارید ماهیانه؟ (اگه کامنت کنید و لینک بدید خیلی بهتره)
Poll
  •   زیر 5 تومن
  •   بین 5 تا 10 تومن
  •   بین 10 تا 20 تومن
  •   بین 20 تا 40 تومن
  •   بین 40 تا 70 تومن
  •   بین 70 تا 120 تومن
  •   بین 120 تا 200 تومن
  •   بین 200 تا 300 تومن
  •   بالای 300 تومن
  •   انتشار ندادم - انتشار دادم ولی نمی‌خوام بگم - دیدن نتایج
206 votes


Video is unavailable for watching
Show in Telegram
Quickly Organize your Hierarchy!

Use Ctrl+Shift+G to group selected GameObjects under a new Parent Object

🔗 Sunny Valley Studio


#نکته #یونیتی


👉 @UnityEngine3D 👈


Video is unavailable for watching
Show in Telegram
To inspect your map more easily in the Scene View use Shift+~ to toggle off all tool overlays

🔗 Sunny Valley Studio


#نکته #یونیتی


👉 @UnityEngine3D 👈


Video is unavailable for watching
Show in Telegram
Make your Character stand out in Dark Scenes with Lighting and Rendering Layers in Unity!

🔗 Sunny Valley Studio


#نکته #یونیتی


👉 @UnityEngine3D 👈


Here are some different approaches to check a collection for its length.

Some examples might better fit your coding style than others. Always use the ones that fit your team and give you the maximum readability.



🔗 Binary Impact


#نکته #یونیتی


👉 @UnityEngine3D 👈


Video is unavailable for watching
Show in Telegram
Ragdolls are perfect for dynamic Death Effects or impactful reactions for your characters

🔗 Sunny Valley Studio


#نکته #یونیتی


👉 @UnityEngine3D 👈


need of Icons for your project?

You can download many Icons in a single Font: https://github.com/google/material-design-icons/tree/master/variablefont

Then use it with TMP!

- Create a FontAsset
- Assign the Font to the TextElement
- Add codePoint
- On Google Fonts Site search for icons + codePoints




🔗 Binary Impact



#نکته #یونیتی


👉 @UnityEngine3D 👈


Normalizing a zero vector is mathematically undefined and returning NaN within the Unity.Mathematics lib!

When normalizing i.e. a Unity.​Mathematics float3 use the normalizesafe method to avoid NaN.

It works for Vector3 though!


🔗 Binary Impact


#نکته #یونیتی


👉 @UnityEngine3D 👈


Video is unavailable for watching
Show in Telegram
Here is how to set up One Way collision Platforms in Unity 2D using Platform Effector component



🔗 Sunny Valley Studio


#نکته #یونیتی


👉 @UnityEngine3D 👈


The Transform class implements IEnumerable. With that you could i.e.:

-Iterate through the children of the transform like foreach (Transform child in transform) {...}

-Iterate with direct cast via .OfType like transform.OfType()


🔗 Binary Impact


#نکته #یونیتی


👉 @UnityEngine3D 👈


بهینه‌سازی یونیتی : پروفایل‌گیری از بخش‌ها و قسمت‌های خاص کد


لینک : https://medium.com/@brunolorenz98/optimization-unity-3d-profiling-specific-code-parts-and-sections-0f7a1920d024



#آموزش #یونیتی #بهینه_سازی


👉 @UnityEngine3D 👈


Profiling flowchart for a Unity project


🔗 Dave Hampson (1.0x engineer)



#نکته #یونیتی


👉 @UnityEngine3D 👈


قیمت موبایلتون چقدره؟ ( تقریبی بگید ، می‌خوام ببینم چند درصد افراد گوشی مدل پایین یا بالا یا پرچمدار دارند. برای اینکه ببینیم باید چقدر بازی رو بهینه کنیم چقدر کاربر داریم)
Poll
  •   2 تا 5 میلیون تومن
  •   5 تا 7 میلیون تومن
  •   7 تا 10 میلیون تومن
  •   10 تا 15 میلیون تومن
  •   15 تا 20 میلیون تومن
  •   20 تا 30 میلیون تومن
  •   40 تا 50 میلیون تومن
  •   50 تا 60 میلیون تومن
  •   از 60 میلیون تومن به بالا
  •   سایر ( اپل دارم - گوشی دکمه ای دارم - گوشی ندارم - گوشیم کمتر از 2 میلیون تومنه)
311 votes


Video is unavailable for watching
Show in Telegram
The "F" key can be used to focus on an object in scene view, but did you know you can also focus on an asset in project view when you misclicked other folders?



🔗 Kronnect


#نکته #یونیتی


👉 @UnityEngine3D 👈


You have heard about the formatting options of strings, but did you know these work for structs like Vector3?

Use them in your interpolated strings to get a nicer output! In our example the F2 formats the float components to two digits.



🔗 Binary Impact



#نکته #یونیتی


👉 @UnityEngine3D 👈


Video is unavailable for watching
Show in Telegram
To detect which Body Part was Hit, add colliders to your character's bones

This will make them move together with the animation


🔗 Sunny Valley Studio



#نکته #یونیتی


👉 @UnityEngine3D 👈


Video is unavailable for watching
Show in Telegram
Quick Unity interface tip to have better object placement grip and more precision when placing them around the scene! Grid Snapping Tool!



🔗 Kronnect



#نکته #یونیتی


👉 @UnityEngine3D 👈


Video is unavailable for watching
Show in Telegram
Here is how to fix Bullets not hitting objects in Unity

More info at:

https://docs.unity3d.com/Manual/choose-collision-detection-mode.html

🔗 Sunny Valley Studio




#نکته #یونیتی


👉 @UnityEngine3D 👈

20 last posts shown.