This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MIT License | |
Copyright (c) 2018 Oleg Yamnikov | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[AlwaysUpdateSystem] | |
[UpdateInGroup( typeof( InitializationSystemGroup ) )] | |
public partial class InstantiateBuildingStageColliders : SystemBase | |
{ | |
private EntityQuery m_instantiateQuery; | |
private EntityQuery m_cleanupQuery; | |
private EndInitializationEntityCommandBufferSystem m_barrier; | |
public struct BuildableColliders : ISystemStateBufferElementData |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "DBufferDecal" | |
{ | |
Properties | |
{ | |
[HideInInspector]_DrawOrder("Draw Order", Range(-50, 50)) = 0 | |
[HideInInspector][Enum(Depth Bias, 0, View Bias, 1)]_DecalMeshBiasType("DecalMesh BiasType", Float) = 0 | |
[HideInInspector]_DecalMeshDepthBias("DecalMesh DepthBias", Float) = 0 | |
[HideInInspector]_DecalMeshViewBias("DecalMesh ViewBias", Float) = 0 | |
[HideInInspector][NoScaleOffset]unity_Lightmaps("unity_Lightmaps", 2DArray) = "" {} | |
[HideInInspector][NoScaleOffset]unity_LightmapsInd("unity_LightmapsInd", 2DArray) = "" {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Unity.Collections.LowLevel.Unsafe; | |
namespace Unity.Entities | |
{ | |
[NativeContainer] | |
public unsafe struct EntityExistsFromEntity | |
{ | |
#if ENABLE_UNITY_COLLECTIONS_CHECKS | |
readonly AtomicSafetyHandle m_Safety; | |
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using UnityEngine; | |
using Hash128 = Unity.Entities.Hash128; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
[CustomPropertyDrawer( typeof( SubSceneReference ) )] | |
public class SubSceneReferencePropertyDrawer : PropertyDrawer | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.AI; | |
[RequireComponent(typeof(NavMeshAgent))] | |
public class RollBehavior : MonoBehaviour | |
{ | |
/// <summary> | |
/// Distance the agent will elapse when rolling per second. | |
/// </summary> | |
public float rollSpeed; |