CryEngine.Material.Set C# (CSharp) 메소드

Set() 공개 정적인 메소드

public static Set ( EntityBase entity, Material mat, int slot ) : void
entity EntityBase
mat Material
slot int
리턴 void
        public static void Set(EntityBase entity, Material mat, int slot = 0)
        {
            #if !(RELEASE && RELEASE_DISABLE_CHECKS)
            if (entity == null)
                throw new ArgumentNullException("entity");
            if (mat == null)
                throw new ArgumentNullException("mat");
            #endif

            NativeMaterialMethods.SetMaterial(entity.GetIEntity(), mat.Handle, slot);
        }