Skip to content

BBusagi/Unity_Learning

Repository files navigation

Unity_Learning

TODO

【unity ebook】9 ways to optimize your game development 【Udemy】Lighting in Unity

Project_SpaceShooter

GoogleDrive

RoadMap

  • 第一阶段 基本教程
  • 第二阶段 交互模块更改
    • 移动模块(快速移动 远程传送 视角重置 转身设置 跳跃)
    • 菜单 设置按键 装备模式
    • 射击模块()瞄准线 自动锁定 交互射击
    • 感知增强模块
    • 全身显示模组
    • 近战攻击模组
    • 投掷物模块
    • 击碎效果
    • 敌方ai模块

DevLog

  • [Bugfix] XR hand no input action
  • [Bugfix] Rendering pipeline converter

Note

Setup

  • XR Rig, XR interaction - default XRI
  • XRI - version 2.6.4

XRI

  • remove 'XRRayInteractor' / 'LineRenderer' / 'XR interactor Line Visual'
  • add 'XRDirectInteractor'
  • add 'XR grab interactable'

C#

  • MonoSingleton
  • C# interface

GamePlay

  • livecycle - OnDrawGizmos
  • World.Space
  • PlayerPrefs

UI

  • Anchor Presets - ctrl alt

Lighting

  • Light Modes
    • Realtime
    • Baked
    • Mixed
  • Lighting Mode - Mixed
    • Baked Indirect - 全部光线烘焙,动态物体只受间接光,不投影
    • Subtractive - 单光源静态烘焙 + 动态实时(更简化,低端设备推荐)

      第一个启用的 Directional Light 为 Main Light。

    • Shadowmask - 静态阴影烘焙,动态阴影实时(更真实)
  • LightMap resolution/Texel Validity (60)
  • Reflection Probe
  • Light probe - 存储间接(反射)光照信息,通常布置在光照环境变化较大(色彩,明暗)区域

Animation

  • Animator.SetTrigger

PostProcessing

  • PostProcessing
  • Add override - bloom, color adjustment

Particle System

  • Emisson, Shape, Renderer
  • Shader

Camera

  • Clipping planes

Performance Optimization

  • Texture optimisation
  • Build - max texture size: max 1024
  • Maps - reduces texture size(256) if not much complex information
    • Base Map
    • Metallic Map
    • Normal Map
    • Occlusion Map
  • Enable GPU instancing - render multiple identical objects in a single draw call
  • Occulusion Culling - bake

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •