Internal_SetHandleWireTextureIndex() private method

private Internal_SetHandleWireTextureIndex ( int textureIndex ) : void
textureIndex int
return void
Beispiel #1
0
		internal static void ApplyDottedWireMaterial([DefaultValue("UnityEngine.Rendering.CompareFunction.Always")] CompareFunction zTest)
		{
			Material handleDottedWireMaterial = HandleUtility.handleDottedWireMaterial;
			handleDottedWireMaterial.SetInt("_HandleZTest", (int)zTest);
			handleDottedWireMaterial.SetPass(0);
			int textureIndex = (!Camera.current) ? HandleUtility.s_HandleDottedWireTextureIndex2D : HandleUtility.s_HandleDottedWireTextureIndex;
			HandleUtility.Internal_SetHandleWireTextureIndex(textureIndex);
		}
        internal static void ApplyDottedWireMaterial()
        {
            Material handleDottedWireMaterial = HandleUtility.handleDottedWireMaterial;

            handleDottedWireMaterial.SetPass(0);
            int textureIndex = (!Camera.current) ? HandleUtility.s_HandleDottedWireTextureIndex2D : HandleUtility.s_HandleDottedWireTextureIndex;

            HandleUtility.Internal_SetHandleWireTextureIndex(textureIndex);
        }
 internal static void ApplyDottedWireMaterial()
 {
     HandleUtility.handleDottedWireMaterial.SetPass(0);
     HandleUtility.Internal_SetHandleWireTextureIndex(!(bool)((Object)Camera.current) ? HandleUtility.s_HandleDottedWireTextureIndex2D : HandleUtility.s_HandleDottedWireTextureIndex);
 }